Ask coding questions

← Back to all posts
Multiplayer games making
AnouS (15)

I am trying to figure out how to make a multiplayer game where each players moves are hidden from their opponent. I have never made a multiplayer game before so this is a big challenge. Anybody who can help: Please do!

Answered by timmy_i_chen (1066) [earned 5 cycles]
View Answer
timmy_i_chen (1066)

@AnouS you'd probably have to create a server that contains all the players moves, and the clients (players) would only have access to their own moves. See examples in the multiplayer games challenge board

CSharpIsGud (382)

WebSockets are a good start, i thought about making a multiplayer game, but i dont know much html and im not good enough at math to know how to do all the angles and stuff, but i have never tried so i dont know

JakobNacanaynay (37)

Which code are you planning to use?

JakobNacanaynay (37)

@AnouS Then just print \n a bunch of times to refresh screen and tell people not to scroll up.