Question: riscv use keyboard and simulator current given function 1 . printchar : print one single char in specific area 2 . printstring: print one string

riscv use keyboard and simulator
current given function
1. printchar : print one single char in specific area
2.printstring: print one string in spefcific area
3.print table: create a area for snake game
4. handler: check when time inter and last key pressed,reset timecap
5. main->1,2,3 for 3 level game.
6. game: start time inter and set timecap
there is loop under game
loop:
dreaw a 3 point snake @as head. it will appear at center when game start(20*20) it will move one each second_>move right and game stop when it touch wall(I will write that stop myself) and when wasd one of it key press snake will change direction(but if it go to right, it can not go left, only up or down). when appale( there is a random I write to perfrom), get extra time(5s) but it would not get longer for snake . snake would never touch it body
how to write this loop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!