Random walk TCP

Jan 30th, 2014
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) labOnLaptop
School: UCLA

Studypool has helped 1,244,100 students

Review from student
" Wow this is really good.... didn't expect it. Sweet!!!! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1819 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