3 ms·
I was thinking on creating a turn-based multiplayer game for group chat in an app like Telegram. Then, whenever a player gave a command the server would draw th
by giovannibonetti 6y ago
I was thinking on creating a turn-based multiplayer game for group chat in an app like Telegram. Then, whenever a player gave a command the server would draw the board and send the updated image to the chat.
It could start with something simple like tic-tac-toe and only two players. A player would tell the app a number between 1 and 9 corresponding to the place he/she chose. Then the server/bot would send the updated image to the conversation.
What do you think? :)
- mufufu 6y agoNot sure why that would have to be done server side though, couldn’t the server only be used for coordination/maintain state and then submit the current state/positions to the client and the client would render the board?
- julienb_sea 6y agoIn his example, there is no client browser. The users are just sending commands into a telegram chat, the app is presumably only able to send API calls based on chat events responses. Its unlikely the app would be sufficiently featured to do the board rendering itself, although I am not really familiar with this space so I'm making assumptions. As such, the backend would do the heavy lifting of rendering the board, and send the rendered board back into the message group.
- imjasonmiller 6y agoI think one’s constrained by the chat application’s functionalities. Telegram doesn’t allow a bot to perform such operations on the client, last time I built one at least. Of course one might be able to use emoji or text as a representation of said state if the game allows for it.
- deft 6y agoSomeone I know is doing exactly this (well for discord) and I thought it was genius.
- giovannibonetti 6y agoThat's awesome. Do you have anything more to share about it? Maybe a project link or that person's contact.