tactic 1.1.0

A terminal tic-tac-toe game with AI opponent
Documentation
  • Coverage
  • 66.67%
    58 out of 87 items documented0 out of 50 items with examples
  • Size
  • Source code size: 94.72 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.23 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • generic-user1/tactic
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • generic-user1

tactic

A terminal tic-tac-toe game with AI opponent, written in Rust.

Play tic-tac-toe (a.k.a. "noughts and crosses" or "Xs and Os") in the terminal against an AI opponent or another human player.

Features

  • Play against a friend, play against a computer, or pit two computer players against each other

  • Configurable computer player difficulty

  • Configurable game ending settings

    • Best of x number of games

    • Best of x number of won (non-draw) games

    • First player to x score

    • Unlimited (play until deciding to quit)

  • Reverse mode

    • Instead of playing to get three of your pieces in a row, try to force the opposing player to place three of their pieces in a row

Installation instructions

  1. Install the Rust programming language with rustup

  2. Install tactic with cargo install tactic

Development instructions

  1. Install the Rust programming language with rustup

  2. Clone the tactic repository locally

    • e.g. git clone https://github.com/generic-user1/tactic.git
  3. Enter the local copy of the repository

    • e.g. cd tactic
  4. Make changes to source code as desired

  5. Run project with cargo run

    • To improve game performance (especially with computer players), run in release mode

      • e.g. cargo run --release

Dependencies

As a user, you likely won't have to worry about these as cargo will take care of downloading and building them for you.