Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

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

tic-tac-go

Two goroutines playing tic-tac-toe. They don't stop if one has won, and nothing is evaluated. Maybe I'll add that. This is my first time using go.

Example output:

   |   |   
-----------
   |   |   
-----------
   |   |   

***********

 x |   |   
-----------
   |   |   
-----------
   |   |   

***********

 x |   |   
-----------
   |   |   
-----------
   |   | o

***********

 x |   |   
-----------
   |   | x
-----------
   |   | o

***********

 x |   |   
-----------
 o |   | x
-----------
   |   | o

***********

 x | x |   
-----------
 o |   | x
-----------
   |   | o

***********

 x | x |   
-----------
 o |   | x
-----------
 o |   | o

***********

 x | x |   
-----------
 o | x | x
-----------
 o |   | o

***********

 x | x | o
-----------
 o | x | x
-----------
 o |   | o

***********

 x | x | o
-----------
 o | x | x
-----------
 o | x | o

***********

About

Two goroutines playing tic-tac-toe

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages