#include<iostream>
#include<string>
#include <time.h>
#include <cstdlib>
usingnamespace std;
// Will assign gems to have integer values for ease
int main()
{
constint triangle = 0;
constint square = 1;
constint diamond = 2;
constint circle = 3;
constint star = 4;
srand(time(NULL));
int board[8][8]; // This is an array to hold the information in each square on the board
int i,j;
for (i=0; i<8; i++)
{
for (j=0; j<8; j++)
{
board[i][j] = rand()%5;
}
}
cout << board[0][0] << " " << board[7][7] << endl;
return 0;
}
Hi guys. I'm currently using quincy 2005. I have been told to use FLK for a graphics package?
This is currently an array filled with random numbers. The object is to make a game that resembles bejeweled. I am struggling with how to transfer this array, to game-like graphical array on screen to the user.
If anyone can shed some light, would appreciate.