Sign in to follow this  
Butch

GRAY CODE game using an HTML5 P-code Engine

Recommended Posts

There is a GRAY CODE game at http://www.html5pcode.com/a1ygraycode.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 maximize the INCOME given a set of PRICES, REQUIREMENTS, and LIMITS. There are 4 products you can make with 4 materials. You enter the QUANTITY to make for each product. The QUANTITY must be an integer value. You can not exceed the limits on the materials. You can ask for the program solution to the game. It will use the GRAY CODE sequence of binary numbers to solve the game. There are 100 different games.

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.

jpggraycode.jpg.a60dce1ee15f22e1e5f4621d77d539d6.jpg

 

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.