Study your flashcards anywhere!

Download the official Cram app for free >

  • Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

A key: Read text to speech.a key

image

Play button

image

Play button

image

Progress

1/8

Click to flip

8 Cards in this Set

  • Front
  • Back

Purpose Of Abs function

- Abs returns difference between two values +ve or -ive


- if returned value is -ve then its automatically converted to its positive equivalent

Give example of a constant integer

BoardDimension - used to hold the size of the game boards in squares

Give an example of a user defined type

TBoard is a user-defined type - used to define the board as 2 dimensional array

Give an example of a global variable (boolean)

GaveOver - used to store whether the game is over or not

Give an example of global variable Integer

StartRank- extracted first digit from the start Square

Give an example of a char

WhoseTurn - global varaible (single character or char) stored as W/B



DisplayWhoseTurnItIs

DisplayWhoseturnItIs


Receives - nothing


Returns - nothing


Called from - main program



GetTypeOfGame

GetTypeOfGame


- Receives : Nothing


- Returns : nothing


- called from : nowhere