Random walk TCP

Jan 30th, 2014
SoccerBoss
Category:
Programming
Price: $30 USD

Question description

Code a client or server-based game (that uses the select() function) that has two clients doing a "random walk" on a 20x20 grid. The clients send the updated positions to a server that tracks the two clients and sends the updated positions for both clients to each client. Do collision detection between the clients. It's your choice as to where and how this is done, but you must not miss a collision. End the game after 200 moves, or the clients collide. This should be done in C++ and be able to run on VS2012

Client Main > main.cpp 

Server Main > main.cpp 

Tutor Answer

(Top Tutor) Daniel C.
(997)
School: Boston College
PREMIUM TUTOR

Studypool has helped 1,244,100 students

8 Reviews


Summary
Quality
Communication
On Time
Value
tinytim47
Dec 6th, 2016
" Wow this is really good.... didn't expect it. Sweet!!!! "
Five Star Tutor
Nov 23rd, 2016
" Outstanding Job!!!! "
mixedballz
Nov 22nd, 2016
" excellent work as always thanks for the help "
lilmoe415
Nov 13th, 2016
" Thank you, Thank you, for top quality work, this is your guy!! "
darnay
Oct 31st, 2016
" The best tutor out there!!!! "
dontuwannaknow
Oct 22nd, 2016
" Excellent work as always thanks so much "
SjSurvivor143
Oct 8th, 2016
" Thanks for the help. "
Joemoe
Sep 25th, 2016
" <3 it, thanks for saving me time. "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1824 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors