Ask coding questions

← Back to all posts
Multiplayer games making
AnouS

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 [earned 5 cycles]
View Answer
Voters
havenswe
sandrew588
AnouS
Comments
hotnewtop
timmy_i_chen

@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

Abdulrahman1211

Create a game like minecraft.

CSharpIsGud

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

Which code are you planning to use?

AnouS

@JakobNacanaynay Python maybe?

JakobNacanaynay

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

LeoXu2

@JakobNacanaynay Or just use replit.clear()

import replit
replit.clear()