Butch Posted August 27, 2018 Share Posted August 27, 2018 There is a RED LIGHT game at http://www.html5pcode.com/a1yredlight.htm The game uses a p-code. The p-code was written in HTML5 JavaScript. The home page is http://www.html5pcode.com You are to minimize the average time it takes for vehicles to be served by a traffic light. You control the amount of time the light is red in each direction. There is a probability distribution for vehicle size, spacing between vehicles, and right&left turns. You get to change these probabilities, so you get to define the game. This game is written in a p-code. The p-code is executed by a p-code engine. If you click on PROGRAM in the RED STRIPE at the top, you can view the p-code programs. The p-code engine can execute the programs and it can edit the programs.There is a DATA option that allows you to see the program's data as it is being executed. There is a TRAIL option that allows you to execute the program in small steps. There is an RT, Real Time, option that allows you to change the program as it is executing. There are many YouTube videos that will show you how it works. Quote Link to comment Share on other sites More sharing options...
turnA Posted August 29, 2018 Share Posted August 29, 2018 Wow, remind me of DOS games I used to code on univ Hardcore! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.