Butch

Members
  • Content count

    14
  • Joined

  • Last visited

1 Follower

About Butch

  • Rank
    Member

Contact Methods

  • Website URL
    html5pcode.com

Profile Information

  • Gender
    Male
  • Location
    Reading, PA
  • Interests
    HTML5 JavaScript Programming

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. There is a PRICE game at http://www.html5pcode.com/a1yprice.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 your profit by making a strategy for selecting a price (PROFIT MATRIX ROW). Your competitor also selects a price (PROFIT MATRIX COLUMN). Your competitor's strategy is to fix the value of the game over the long run. See if you can stop him. You change your strategy by changing the length of the yellow bars. This will changes the percentage of time you select each row. 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.
  2. There is a TRIP game at http://www.html5pcode.com/a1ytrip.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 time for going from one CITY to another CITY. The roads have different distances and speed limits. The game is solved by using DYNAMIC PROGRAMMING. DP solves the game by advancing in time to find the lowest time for each city. 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.
  3. There is a TOWERS game at http://www.html5pcode.com/a1ytowers.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 cost of supporting a wire. There are 8 towers that can be used to support the wire. Each tower has a different height and load capability.. The wire must have ground clearance. The starting and ending points are given. It will show, when the requirements are not met. This is a difficult problem to solve. You can view the DYNAMIC PROGRAMMING solution. 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.
  4. There is a TOLL GATES game at http://www.html5pcode.com/a1ytollgates.htm The game uses a p-code. The p-code was written in HTML5 JavaScript. The home page is http://www.html5pcode.com There are 12 walls. Each wall has 8 gates. You must pass thru one of the gates in each wall. There is a TOLL for passing thru a GATE. There is also a cost for moving from one column of GATES to another column. You are to minimize the total of the costs. You can view a DYNAMIC PROGRAMMING (DP) solution to 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.
  5. There is a TRUCK game at http://www.html5pcode.com/a1ytruck.htm The game uses a p-code. The p-code was written in HTML5 JavaScript. The home page is http://html5pcode.com The truck can hold a maximum of 20 pallets. There are 18 clients requesting the service. They want their pallets transported to one of the three cities (A, B, and C). Not all of the clients can be serviced. You are to service the clients that will maximize the profit. 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.
  6. There is the MATCH TWO game at http://www.html5pcode.com/a1ymatchtwo.htm The p-code was written in HTML5 JavaScript. The home page is http://html5pcode.com In the MATCH TWO game there are 20 tiles. Behind each tile there is a picture of a bird. There are 10 different bird pictures. Each bird is behind two tiles. You are to select two of the tiles. They will only stay shown, if they match. When all 10 birds are matched, the game is over. There are 1000 different games. Test your memory! 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.
  7. There is a BAKERY game at http://www.html5pcode.com/a1ybakery.htm The p-code was written in HTML5 JavaScript. The home page is http://html5pcode.com The BAKERY has 3 items to make. Each item requires a certain amount of 3 ingredients. The maximum amount supplied of each ingredient is 10,000 units per hour. You are paid $1 for each item made per hour. The purchaser of the items will give you the required ingredients. You are to maximize your dollars per hour. There are 100 different games. Linear Programming is used to find a solution. 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.
  8. There is a build a TRESTLE game at http://www.html5pcode.com/a1ytrestle.htm The p-code was written in HTML5 JavaScript. The home page is http://html5pcode.com This TRESTLE game allows you to select the beams, bases, and poles that are required to build a trestle. After playing the game for awhile, you will discover a strategy for it. The program uses DYNAMIC PROGRAMMING to find the lowest cost. You can compare your solution with the DP solution. There are 10,000 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.
  9. There is a Texas Holdem game at http://www.html5pcode.com/a1yholdem.htm The p-code was written in HTML5 JavaScript. The home page is http://html5pcode.com This Texas Holdem program determines the possible winning hands and gives the tie or win probabilities. It will highlight the percentage for your best hand. If it is 100%, it means you can not lose, but you may tie. There are 2 other players. They also know their probabilities and will bet accordingly. 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.
  10. There is a puzzle game at http://www.html5pcode.com/a1ypuzzle.htm The p-code was written in HTML5 JavaScript. The home page is http://html5pcode.com A pattern was made for each puzzle piece. Random numbers were used to make the jagged sides. HTML5 has an image option that allows you to use a pattern like a cookie cutter. The result was an image that could be turned and then placed on the right side of the screen. Random number were used to determine where each piece would be placed. 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.
  11. There is a CRAPS game at http://html5pcode.com/a1ycraps.htm The p-code engine was written in HTML5 JavaScript. The home page is http://html5pcode.com 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. The CRAPS program allows you to change the dice probabilities. There is a Markov Chain program that will show you the probability of winning on points.
  12. A P-code is similar to a programming language, except it contains only the instruction you want to perform particular tasks. In this case it is to build games that use mathematics. So the P-code Engine contains JavaScript functions that perform these tasks. It also contains the JavaScript programs that facilitate the building of P-code programs. There are functions for displaying patterns, showing pictures, animation, probability, and many more. New functions are added , when new capabilities are needed.. The name of the JavaScript file is a001.js. You can view this file by asking the browser to view the HTML page. Then click on the a001.js file to view it., You are free to copy any of these functions. I have been programming for over 45 years, so I have no problem understanding my JavaScript P-code Engine, but I can understand that others may find it difficult to follow. It was originally written in Java. There are many YouTube videos that explain the use of this P-code Engine. To see them go to html5pcode.com. As to the colors I used, I'm a mathematician and not an artist. Sorry; I will try to do better.
  13. There is a roulette game at http://www.html5pcode.com/a1yroulette.htm The p-code was written in HTML5 JavaScript. The home page is http://html5pcode.com You can adjust the frequency table for all of the 38 possibilities. You can test the the result of your changes. It will build a Markov Transition Matrix for Stop at Loss, Stop at Win, and Stop at a number of spins. The expected value of the game will be given by the Markov Chain.
  14. There is a blackjack game at http://www.html5pcode.com/a1yblackjack.htm The p-code was written in HTML5 JavaScript. The home page is http://html5pcode.com The win and tie percentages are given for the player. These percentages are based on the dealer's up-card and the number of each card left in the deck. The percentages are also given for taking a hit. At the bottom of the dark blue box are the number of each card left in the deck. If you want, you can adjust the deck to see how it will change the percentages.