Skip to content

rpalo/tictactoe-rb

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
img
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 

Tic Tac Toe

An implementation of Tic Tac Toe for the challenge posted on Dev.to. Supposed to be 30-60 minutes. We'll see how that goes.

Demo of gameplay

Test It Out

Clone the repository.

$ git clone https://github.com/rpalo/tictactoe-rb

Start a game via the command line.

$ cd tictactoe-rb
$ ./bin/play defensive  # (or basic, random, or human to play 2 players!)

Enjoy!

Feeback

I'm just starting to really dig into Ruby, so if you've got any feedback on the way that I've done things, how my code looks, how the project is laid out, the way my tests look, or anything else, I'd love to hear it. Open an issue and let me know about it. Thanks so much!

Goals

  • Get a working tic tac toe game, where the user can put x's into whatever square they want.
  • Make them alternate with the computer, with the computer putting in the first possible spot.
  • Stretch goal: Make the AI brute force the options.
  • Super Stretch Goal: Make the AI use an actual graph-based search pattern.
  • Stretch goal: Make a GUI for it.

About

Ruby implementation of tic tac to for a coding challenge.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages