Skip to content

gariptipici/chatgame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chatgame

Given a Player class - an instance of which can communicate with other Players.

The requirements are as follows:

  1. create 2 Player instances
  2. one of the players should send a message to second player (let's call this player "initiator")
  3. when a player receives a message, it should reply with a message that contains the received message concatenated with the value of a counter holding the number of messages this player already sent.
  4. finalize the program (gracefully) after the initiator sent 10 messages and received back 10 messages (stop condition)
  5. both players should run in the same java process (strong requirement)
  6. document for every class the responsibilities it has.
  7. additional challenge (nice to have) opposite to 5: have every player in a separate JAVA process.

Please use core Java as much as possible without additional frameworks like Spring etc; focus on design and not on the technology. Please include a maven project with the source code to build the jar and a shell script to start the program. Everything not specified is to be decided by you; everything specified is a hard requirement.

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published