Tag: games

2: noughts n crosses

Intro

Tic Tac Toe is an old game. Players alternately get Xs or Os in their button. The first one to complete 3 in a row wins.

It requires a 3×3 button control array.

Form:

  • A button array of 9 buttons inside a flow layout panel.
  • a boolean as to which is the current player (text is filled in the buttons accordingly)
  • Each time a button is clicked, check if known solutions are matched / its a draw

Read more »