CAS Community   >   Resources   >  

Board-game-pi-ofg
OCR GCSE 9-1 Comp Sci - NEA Sample Task 3 - Game using GNU C++ for Raspberry Pi

Console program - Animated attempt at Sample NEA Task 3 Board-Game in colour for the Raspberry Pi

Phil Gardner

Created by Phil Gardner
last edited Mar 23 2017 by Phil Gardner



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!

Downloaded 556 times.

Download

This resource has attached files: to access these files, please tick the box below to assent to the license terms
License: The resources on CAS website are under Creative Commons Attribution-Share Alike 3.0 licence unless otherwise specified by the resource creators.

You must confirm that you have read and agree the licence's ToS before you can download the attachments of this resource.

I have read the licence agreement of this resource and agree to abide by its terms and conditions.

Feedback and Comments


Available when logged in (join via the front page, for free):
  • View 0 comments on this resource.
  • View resource history, links to related resources.
  • Leave feedback for the author(s), or help by editing the resource.
Categories:


© 2021 BCS, The Chartered Institute for IT Registered charity: No. 292786
Using the websiteDisclaimer of liabilityCookies policyPrivacy notice