Author Topic: Number guessing game without a #include file  (Read 3581 times)

0 Members and 1 Guest are viewing this topic.

Offline Ephraim B

  • LV2 Member (Next: 40)
  • **
  • Posts: 28
  • Rating: +1/-1
    • View Profile
Number guessing game without a #include file
« on: March 05, 2015, 01:16:10 pm »
Hooloovoo gave me a challenge to make a Number guessing game with no b_call's and only A and HL.

My code is at: https://github.com/EphraimB/Number-Guessing-game-z80-ASM

Can someone please make new issues of what I need to get done to complete this?





Offline Ivoah

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +3/-0
    • View Profile
    • Codinghobbit
Re: Number guessing game without a #include file
« Reply #1 on: March 05, 2015, 06:29:12 pm »
Did Hooloovoo challenge you to make it or ask omnimaga to make it for you?
http://codinghobbit.no-ip.org
My Calcs:
TI-86 (now broken) $2
TI SR-56 - $0
TI-Nspire CX CAS - $152
TI-84+ Silver Edition - $56
TI-84+ Silver Edition - $0
TI-85 - $0
TI-73 Explorer VS - $10
ViewScreen - $3

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: Number guessing game without a #include file
« Reply #2 on: March 06, 2015, 12:01:09 am »
You'll need to use direct input to read the keys. Though you will probably need to at least use some ion calls, like ionFastCopy to draw the graph buffer and ionPutSprite to draw a sprite to the screen. You could write your own sprite routine that wouldn't be too hard if you kept it aligned (meaning you can only draw to x multiples of 8). Writing your own fastcopy routine isn't too hard if you know how the LCD ports work, but it's probably beyond the scope of this project.

You can use direct input to either read the numbers 0-9, if the number is correct, display a check sprite or something, if in correct, display an x sprite. You can also use the up and down arrows to increase and or decrease the number you want to choose.

Doing this without any external routines makes this program much more complicated. That or much more boring, as nothing will get drawn to the screen. The screen will be blank until you guess the correct number and then exit.

Offline Ephraim B

  • LV2 Member (Next: 40)
  • **
  • Posts: 28
  • Rating: +1/-1
    • View Profile
Re: Number guessing game without a #include file
« Reply #3 on: March 08, 2015, 12:00:34 am »
Did Hooloovoo challenge you to make it or ask omnimaga to make it for you?

I never asked you to make my program for me. I asked that I want you to open up GitHub issues: https://github.com/EphraimB/Number-Guessing-game-z80-ASM/issues
so I can know what steps I need to do.