Skip to content

onnoeberhard/tic-tac-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

 
 
 

Languages