OCR GCSE 9-1 Comp Sci - NEA Sample Task 3 - Game using GNU C++ for Raspberry Pi
Downloaded: -
Last edit: 05 November 2021
GCSE/Key Stage 4 OCR A453 Coding
Language/Platform Raspberry Pi, C++
Share resource
Compile from command-line:
g++ game.cpp
(This produces an executable called "a.out" by default.)
Then run:
./a.out
Possibly useful as a demonstration, even if you plan to use some other language to do it.
I did it for a laugh to try out an idea posted by Paul Powell (so blame him :-) )
Bit technical on the cursor-positioning, but the board and counter display can be done instead by a rolling, scrolling redisplay of the whole thing, rather than refreshing parts of the console window using coordinates. I wanted to see if it would work in the Pi... it did!