Anyone can terach me how to use bool removeTile(char, int, int, char[])

Aug 15, 2014 at 1:38pm
Im supose to use <>bool removeTile(char, int, int, char[])<> to do this "function that takes in the choice (D or S) and the two dice numbers and the board as input arguments. When the move is legal and the tile is available for removal, it removes the tile according to the choice by marking the tile as ‘X’. Returns true if the move is successful."

but i got no idea how to use it can anyone teach me?
Aug 15, 2014 at 2:30pm
...use it? then i guess it has already been implemented. Post its code and what you've done so far.

Aceix.
Aug 16, 2014 at 12:42pm
The problem is i dont understand what is it.
Aug 16, 2014 at 12:58pm
well for start you write a main function,

then you could declare following varibles inside the main:
dice number1, dice number2
array of chars to hold the board name (i suppose)

and what is 'D' and 'S' anyway?
Aug 23, 2014 at 7:58pm
D is to take away the biggest number shown by the dice and S is the sum of to dice and take away the number

example D
Dice 1 : 5
Dice 2 : 6
6 is to be remove
6E = 6X

example S
Dice1 : 5
Dice 2 : 6
11 is to be remove as 5+6 = 11
11E = 11X
Topic archived. No new replies allowed.