Skip to content

kevbuchanan/t3c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe in C Build Status

##Make

$ make

Test

$ ./spec

Play

$ ./main

Default is human(X) vs hard difficulty(O) on 3x3 board

Options

Size: -s <size 1 to 9>

Player 1: -p1 <human hard medium easy>

Player 2: -p2 <human hard medium easy>

Example:

$ ./main -s 6 -p1 easy -p2 human

Difficulties

Easy: Makes random moves

Medium: Will win if possible, but is beatable

Hard: Unbeatable on 3x3 board

Debug Memory Leaks

$ valgrind --tool=memcheck --dsymutil=yes --leak-check=full ./spec

About

A Tic Tac Toe game in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published