Skip to content

Simple browser-based Tic-tac-toe game using the Scotty library.

License

Notifications You must be signed in to change notification settings

NSUSpray/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-tac-toe

Demonstration

Simple web browser Tic-tac-toe game based on Scotty library.

Dependencies

Usage

Setup your Haskell environment (e. g. using GHCup):

  • cabal 3.10.2.1+
  • GHC 9.4.8+ (base ^>=4.17.2.1)

Next clone this repository, run the application

$ git clone https://github.com/NSUSpray/tic-tac-toe
$ cd tic-tac-toe
$ cabal run

and wait for the message

Setting phasers to stun... (port 3000) (ctrl-c to quit)

Then open your browser and enter in the address bar http://localhost:3000/

Test

Execute in your shell

$ cabal test --test-show-details=direct

or

$ cabal run tic-tac-toe-test

--test-show-details=direct means that test case results will be sent in real time; no log file.

About

Simple browser-based Tic-tac-toe game using the Scotty library.

Topics

Resources

License

Stars

Watchers

Forks