Go Down

Topic: TicTacToe Decision Engine Library (Read 157 times) previous topic - next topic


Jan 18, 2015, 05:40 am Last Edit: Jan 21, 2015, 09:27 pm by marco_c
A library for playing TTT against the Arduino (computer moves).

The motivation for this library was to explore the separation between the algorithm for managing a game and the user interface for the game. Discovering a TicTacToe algorithm simple enough to implement on the Arduino allowed an exploration of this concept with simple user interface requirements.

The code implements an elegant algorithm that is briefly described  here with some additional features to make decisions easier to implement in code.

The integration between game library and user interface is largely implemented through a callback function that allows the user program to update each game cell as the game progresses, without needing detailed knowledge of the game board and current positions. The example programs supplied provide a framework that can be changed for alternative user interfaces.

Direct link to the library release or visit my code repository link in the signature below.
Arduino libraries http://arduinocode.codeplex.com
Parola for Arduino http://parola.codeplex.com

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131