npm

Check out our latest tech talk, "JavaScript Supply Chain Security" presented by VP of Security, Adam Baldwin.Watch it here »

tictactoe3

1.0.1 • Public • Published

README.md

A self playing tic tac toe game.

Allows user to play against computer player that finds the best, most successful move, from history.

Setup

Setup with

npm install

Usage

To run use:

bin/tictactoe

For command line arguments

bin/tictactoe -?

Computer Players

BadComputer

Find a random move to make based on all available moves on board.

MimicComputer

Finds ratio of winning games according to the state of the game board. Falls back to random move if no history on state of board is known.

Human Player

Allows for user input to play computer

install

npm i tictactoe3

Downloadsweekly downloads

12

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability