Hi guys,

I was wondering if anyone could shed some light on the best way to produce this very simple little game in Flash (8).

_The Game_
It's an old Chinese game consisting of counters which are removed from the board by two players in turn.

There are three lines of 6, 4 and 1 counters:
o
oooo
oooooo

Each player must remove as many counters as he likes (min 1) from any *single* line.

The winner is the one to force his/her opponent to take the last counter.
____________


There is a method to guarantee victory for the person going first.

How can I turn this into a little flash game with player vs computer?

How would I keep the code modular?

Thanks,
fm