Giter Club home page Giter Club logo

notakto's Introduction

notakto

Work plan

  1. Find partner.
  2. Test telnet: is it single move passing or all moves? - ALL

Atom and haskell setup: https://github.com/simonmichael/haskell-atom-setup

Test solution: https://stackoverflow.com/a/43264723

It does not

  • detect, if same playerID makes two turns twice.

HTTP

telnet tictactoe.haskell.lt 80

1

POST /game/yolo113/player/1 HTTP/1.1 Host: tictactoe.haskell.lt:80 Content-Type: application/json+map Content-Length: 44

{"c": {"0": 1, "1": 1}, "v": "x", "id": "1"}

2

GET /game/yolo110/player/1 HTTP/1.1 Host: tictactoe.haskell.lt:80 Accept: application/json+map

#3 POST /game/yolo130/player/1 HTTP/1.1 Host: tictactoe.haskell.lt:80 Content-Type: application/json+map Content-Length: 152

{"c": {"0": 1, "1": 2}, "v": "x", "id": "1", "prev": {"c": {"0": 0, "1": 0}, "v": "x", "id": "2", "prev": {"c": {"0": 1, "1": 1}, "v": "x", "id": "1"}}}

2nd player

telnet tictactoe.haskell.lt 80

1

GET /game/yolo119/player/2 HTTP/1.1 Host: tictactoe.haskell.lt:80 Accept: application/json+map

2

POST /game/yolo145/player/2 HTTP/1.1 Host: tictactoe.haskell.lt:80 Content-Type: application/json+map Content-Length: 98

{"c": {"0": 2, "1": 2}, "v": "x", "id": "2", "prev": {"c": {"0": 1, "1": 1}, "v": "x", "id": "1"}}

POST /game/yolo146/player/2 HTTP/1.1 Host: tictactoe.haskell.lt:80 Content-Type: application/json+map Content-Length: 98

{"c": {"0": 2, "1": 2}, "v": "x", "id": "2", "prev": {"c": {"0": 1, "1": 1}, "v": "x", "id": "1"}}

Opponent DEFENCE

GET /game/yolo164/player/2 HTTP/1.1 Host: tictactoe.haskell.lt:80 Accept: application/json+map

POST /game/yolo164/player/2 HTTP/1.1 Host: tictactoe.haskell.lt:80 Content-Type: application/json+map Content-Length: 98

{"c": {"0": 2, "1": 2}, "v": "x", "id": "2", "prev": {"c": {"0": 1, "1": 1}, "v": "x", "id": "1"}}

GET /game/yolo164/player/2 HTTP/1.1 Host: tictactoe.haskell.lt:80 Accept: application/json+map

POST /game/yolo164/player/2 HTTP/1.1 Host: tictactoe.haskell.lt:80 Content-Type: application/json+map Content-Length: 206

{"c": {"0": 2, "1": 0}, "v": "x", "id": "1", "prev": {"c": {"0": 0, "1": 1}, "v": "x", "id": "1", "prev": {"c": {"0": 2, "1": 2}, "v": "x", "id": "2", "prev": {"c": {"0": 1, "1": 1}, "v": "x", "id": "1"}}}}

GET /game/yolo164/player/2 HTTP/1.1 Host: tictactoe.haskell.lt:80 Accept: application/json+map

POST /game/yolo164/player/2 HTTP/1.1 Host: tictactoe.haskell.lt:80 Content-Type: application/json+map Content-Length: 314

{"c": {"0": 0, "1": 0}, "v": "x", "id": "1", "prev": {"c": {"0": 1, "1": 2}, "v": "x", "id": "1", "prev": {"c": {"0": 2, "1": 0}, "v": "x", "id": "1", "prev": {"c": {"0": 0, "1": 1}, "v": "x", "id": "1", "prev": {"c": {"0": 2, "1": 2}, "v": "x", "id": "2", "prev": {"c": {"0": 1, "1": 1}, "v": "x", "id": "1"}}}}}}

Opponent ATTACK

POST /game/yolo164/player/1 HTTP/1.1 Host: tictactoe.haskell.lt:80 Content-Type: application/json+map Content-Length: 44

{"c": {"0": 1, "1": 1}, "v": "x", "id": "1"}

GET /game/yolo164/player/1 HTTP/1.1 Host: tictactoe.haskell.lt:80 Accept: application/json+map

POST /game/yolo164/player/1 HTTP/1.1 Host: tictactoe.haskell.lt:80 Content-Type: application/json+map Content-Length: 152

{"c": {"0": 2, "1": 1}, "v": "x", "id": "1", "prev": {"c": {"0": 0, "1": 0}, "v": "x", "id": "2", "prev": {"c": {"0": 1, "1": 1}, "v": "x", "id": "1"}}}

GET /game/yolo164/player/1 HTTP/1.1 Host: tictactoe.haskell.lt:80 Accept: application/json+map

POST /game/yolo164/player/1 HTTP/1.1 Host: tictactoe.haskell.lt:80 Content-Type: application/json+map Content-Length: 260

{"c": {"0": 1, "1": 0}, "v": "x", "id": "1", "prev": {"c": {"0": 0, "1": 2}, "v": "x", "id": "2", "prev": {"c": {"0": 2, "1": 1}, "v": "x", "id": "1", "prev": {"c": {"0": 0, "1": 0}, "v": "x", "id": "2", "prev": {"c": {"0": 1, "1": 1}, "v": "x", "id": "1"}}}}}

end

notakto's People

Contributors

senvaitis avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.