| ??? 12/07/02 08:15 Read: times |
#33981 - RE: Please give me a hand to the game!! |
<html>
here is the last/latest thread on random numbers: random number thread. you will need to scale the output to a range of numbers suitable for math problems for your target audience. scan thru the "code library" button on the left side of this screen, for math routines. and BCD routines which may be useful. and maybe even LCD and key scan routines. here is pseudocode for a program. each line should be a jump to a subroutine, which returns; this will keep the code cleaner. <code> BOOT: (usual boot stuff, maybe your compiler provides a routine. should include a loop to clear RAM.) initialize "seed" for random number routine. LOOP: calculate a random equation to print. print the equation to the LCD. poll the keyboard for the answer. compare answer with expected value. if good, sing a good noise. if good, increment the user's score. if bad, sing a bad noise. increment the total score (since start). jump to LOOP. </code> james </html> |
| Topic | Author | Date |
| Please give me a hand to the game!! | 01/01/70 00:00 | |
| RE: Please give me a hand to the game!! | 01/01/70 00:00 | |
| RE: Please give me a hand to the game!! | 01/01/70 00:00 | |
| RE: Please give me a hand to the game!! | 01/01/70 00:00 | |
| RE: Please give me a hand to the game!! | 01/01/70 00:00 | |
| RE: Please give me a hand to the game!! | 01/01/70 00:00 | |
| RE: Random Access | 01/01/70 00:00 | |
| RE: random | 01/01/70 00:00 | |
| RE: For the 74C922 | 01/01/70 00:00 | |
| RE: Please give me a hand to the game!! | 01/01/70 00:00 | |
RE: For the 74C922 | 01/01/70 00:00 |



