Javascript game program

A program using Javascript to simulate 3 cars on a road and a stoplight. Each car is either moving at full speed, which is one unit per second, or it is stopped because of the stoplight. The stoplight is either green or red. If a car is at the same position as the stoplight (i.e. 50), and the stoplight is red, the car stops until the light turns green. You can assume that cars can occupy the same space without regard for each other.

The cars initially start at positions 24, 12, and 0. The stoplight is at position 50, is initially green, and switches every 10 seconds.

This program should simulate 100 seconds of operation. For each second, it should print out a line with the second number, the state of the stoplight and the positions of all three cars. The 'seconds' are simulated, and they can advance through a mechanism of your choosing (eg clicking a button, interval timer, keystroke, etc)

Taidot: backbone.js, CSS, Javascript, jQuery / Prototype

Näytä lisää: on line cars, keystroke, javascript three, javascript game, moving car, program interval timer, javascript speed, button mechanism, css print, car javascript, car game 100, advance program, javascript keystroke, speed game, occupy, game line, javascript car game, can car game, simulate game, space program game, javascript css game, css javascript game, print car, print css, green road

Tietoa työnantajasta:
( 0 arvostelua ) Cambridge, United States

Projektin tunnus: #4275069

Myönnetty käyttäjälle:


Hi, I'm ready to start this project. Sounds simple enough to be completed in one day, assuming you don't need any graphics, just the simulation. I can make the code well-commented and easy to understand too.

150 $ USD 1 päivässä
(5 arvostelua)

7 freelancers are bidding on average $185 for this job


Please see PM

250 $ USD 5 päivässä
(13 arvostelua)

Simulations is my best. I can do it very quickly.

200 $ USD 2 päivässä
(1 arvostelu)

Hi, We exclusively deliver Gaming Applications. Thanks, Vijay Infotron SofTech India Pvt Ltd. Mobile:91-9912346111

225 $ USD 7 päivässä
(0 arvostelua)

Hi, I would be happy to develop this for you. Though I need some more details first. Cheers, Aaron.

120 $ USD 4 päivässä
(0 arvostelua)

Hi. An experienced Web Designer with HTML5, CSS3, JavaScript, jQuery is ready to do this for you. Please check PM

230 $ USD 6 päivässä
(0 arvostelua)

I am an expert in Javascript and its several libraries. I am eager to work on this game project.

120 $ USD 7 päivässä
(0 arvostelua)