2.3. Proposed System¶
This project creates a Rust library that application developers can use to create Tic Tac Toe games. The library contains common Tic Tac Toe functionality such as game state management and single player support. The library exposes this functionality through a well defined and documented API. The library is open source and is available in Rust’s package registry https://crates.io/.
By using this library, application developers can focus on making flashy graphics or other unique Tic Tac Toe experiences without worrying about the underlying game logic or artificial intelligence algorithms.
2.3.1. Game State and Board Management¶
A common task of Tic Tac Toe games is managing the state of the game. This includes knowing which player takes the next turn, ensuring players cannot mark a previously marked square, and checking for victory conditions.
2.3.2. AI Players¶
The library allows single player Tic Tac Toe games to be created by providing AI players. These players use artificial intelligence algorithms that pick a square to place the AI player’s mark. The application developer has control over how difficult it is win over the AI player.
2.3.3. Available on crates.io¶
The library is available on https://crates.io/, the source code released under a permissive open source license, and the API documentation is hosted on a publicly accessible website.
2.3.4. Deliverables¶
The project deliverables are:
open_ttt_lib
package. 1API documentation. 2
Source code available on a public repository with a tagged release.
Footnotes
- 1
Future projects built around
open_ttt_lib
may useopen_ttt
as part of their package name.- 2
Popular places to host Rust API documentation include https://docs.rs/ and https://pages.github.com/.