Some other stuff

One of my dad's Java Applets. Go up a level to select another one.
 

T.O.C.

Up a level .. 
History of this program 
Original documentation for this program 
Rules for Euchre 
 

Euchre

© Byron Walton, 1997, All rights reserved.
 

History

The original algorithms for this program were developed in 1982 for a Radio Shack TRS-80 Color Computer. It has gone through many iterations, as I use this program as a learning adventure for new programming languages. The original BASIC program was ported to every platform and version of BASIC, FORTRAN, C and C++, and now it is a JAVA applet.

Images for the cards are shared with Jafar's Blackjack Table

<back to the top> 

 

Original Documentation

(note: these are the rules for the original version, and may not be correct in all aspects to the version above)

EUCHRE by Byron Walton
TRS-80 Card Game Simulator

This program starts by using the high speed poke to shuffle the cards. That is to find 24 random numbers without a repeat. Because of this, you will get garbage on the screen at the start of each hand.

When the garbage clears the screen will show a euchre table and your hand. Because no high-res graphics are used the suits are represented by the first letter of their name. The colours are just to make the black cards distinguishable from the red at a glance. Your hand is the five cards across the middle of the screen with the numbers one to five underneath. It is always your deal at the start of the hand and the card shown in the middle above your hand is the "up" card.

This is four hand euchre, so the other three players get to pass or order the "up" card before your choice. To the left and right of the "up" card you will see your opponents' replies. Across the table (at the top of the screen) is your partner's reply.

If all three replies are "PASS" then underneath your hand will be the prompt "PASS OR PICK?". It is now your decision whether or not to pickup the "up" card. At this point you must enter the word PASS or the word PICK. If you enter PICK the program will ask you WHICH CARD DO YOU THROW (1-5). This is where the numbers underneath each card in your hand come into play. They are the (1-5). You decide which card in your hand you will throw away when you pick up the "up" card. Now push the number on the keyboard corresponding to the number under that card and the card will be replaced by the "up" card. Note: This is an INKEY$ function. You do not need to press enter.

If, however, you do not wish to pick the "up" card and enter PASS remember the other three players can make it trump before it gets back to you. Your opponents or partner can make it trump and if they do a message will appear followed by "PRESS ENTER TO PLAY?". They may not want to make trump in which case you will see EVERYONE PASSED. The program then asks you to make trump. You must enter the number corresponding to the suit you wish to make. Enter "0" and the game will deal the hand over again. Remember this all applies only if everyone passed the first round.

On the first round, if one player orders the "up" card to be trump then a message prints stating whether it was opponents or partner followed by "WHICH CARD DO YOU THROW". This program is designed so that if your partner does order you, you get to help him make his points and believe me he needs you.

You are now ready to play the hand. The hand plays like the card game euchre. The opponent on your left always has the first lead after which the lead follows the person who took the last trick. The "WHICH CARD TO PLAY (1-5)" works the same as the "WHICH CARD TO THROW" described earlier. After all the players have played a card the program tells you the number of tricks "YOU-" have taken in and also the number of tricks "THEY-" (your opponents) have taken.

After the hand has been played the screen will turn orange if you win or blue if you lose. Your games score will be printed and it will ask if you want another hand.

<back to the top>