Skip to content

Ping pong game AI in Haskell for Reaktor Algorithm Codecamp 2012

License

Notifications You must be signed in to change notification settings

timorantalaiho/pong11

Repository files navigation

Getting started

Run server

nc -l 8080

Run huskybot

huskybot

Paste r.json contents to nc:

{ "msgType": "chessboard", "data": { "pieces": [ {"color": "black", "position": "d2"}, {"color": "white", "position": "c3"} ] } }

======= HuskyBot

Starting point for building a Haskell algorithm competition bot for the upcoming Reaktor code camp.

Competition Protocol

  • JSON over TCP/IP
  • Single JSON object message per line (separated by \n)
  • Message structure consists of msgType and data
  • Client starts with a JOIN message:
     {"msgType":"join","data":"lollerström"}
  • Client waits until server starts a competition
  • Start message is a list of player names:
     {"msgType":"gameStarted","data":["lollerström", "ökytunkkaaja"]}

About

Ping pong game AI in Haskell for Reaktor Algorithm Codecamp 2012

Resources

License

Stars

Watchers

Forks

Packages

No packages published