Find Jobs
Hire Freelancers

Linux C TCP Server

$10-30 USD

Cancelled
Posted almost 10 years ago

$10-30 USD

Paid on delivery
Client-server application based on TCP/Sockets in Linux. Server simulates horse races. Each player and hors must be handled by separate thread. Client program is telnet. Configuration of server: setting number of horses, names of horses and frequency of races (how many races per hour) – reading from configuration file. Server chooses up to 8 horses to each each and then simulates it real-time (each 1 second the position of horses is updated and informs about this players). Between races server handles client registration and receiving bets from players (Clients). Each horse has strength factor. At start every horse has equal strength but running horses lose strength - the faster they run the more they lose. Strength of a particular horse is regenerated when it’s racing. The more strength has horse, the faster it runs. Additional there must be some random factor implemented. Players don’t see random factor but it can be seen on server output console. Between races players register to the game (login without password). They can deposit and withdraw virtual money from system, can see next race horses and results from last race. They can check at what time next race is held. They can bet on horse in the next race. During race players receive real-time (every 1 second) data about horse positions, players cannot take any action in that moment except disconnect. During race new connections cannot be made. After race server calculates bet money, all paid money is divided equally for all winner bets. If nobody wins in particular race the money is added to the money available for win in the next race.
Project ID: 6044685

About the project

Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

About the client

Flag of POLAND
R, Poland
0.0
0
Payment method verified
Member since Mar 14, 2011

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.