#pattern #tic-tac-toe #bit #game #testing #schoolyard

bin+lib tic_tac_toe_bit_patterns

An implementation of Tic-Tac-Toe

1 stable release

1.0.0 Jul 3, 2021

#726 in Games

MIT license

32KB
813 lines

Tic-Tac-Toe

Welcome to Tic-Tac-Toe! This is an implementation of the schoolyard game using only bit patterns, built in Rust.

How to Build

  1. Clone this repository
  2. cargo run --release
  3. (Optional) If you want documentation on what the code does: cargo doc --document-private-items --open
  4. (Optional) If you want to run the tests: cargo test

How to Play

Select a cell by pressing a number from 1-9. Cells are represented left-to-right, bottom-to-top, so:

  • 1-3 is the bottom row
  • 4-6 is the centre row
  • 7-9 is the top row

lib.rs:

Welcome to Tic-Tac-Toe!

This crate implements the schoolyard game using only bit patterns.

No runtime deps