jcpage573 / prisoners-dilemma

Team activity simulating the iterative prisoner's dilemma, members make their strategies to play the game and whoever gets the most points wins!
MIT License
0 stars 0 forks source link

Implement Server #1

Open hunterjsb opened 1 week ago

hunterjsb commented 1 week ago

Issue

We need a server! So that people can write their own clients and play over http.

Suggested Endpoints

@jcpage573 thoughts on endpoints?

jcpage573 commented 1 week ago

A /{game_id} and we do query params for question #'s and answers?

hunterjsb commented 1 week ago

so maybe POST a new game GET game details, PATCH new moves?

jcpage573 commented 1 week ago

What about a query param like ?question=1 to store the state of the game then a post to add an answer

hunterjsb commented 1 week ago

I think posting new moves makes sense, dunno if we need to keep state in the query params since youll only ever be posting an answer to the latest question right?

hunterjsb commented 6 days ago