The rules are explained in the game but here: There will be some amount of marbles. (You can choose how many) Then each player (You and the computer) will take turns taking marbles. The players will take upto a predetermined (by you) amount of marbles. Whomever the last marble is taken by wins the game. I made this in 1 day.