Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Voice command
#1
Hi,

I play a lot of chess online and i want to move my pieces useing Voice commands.

I have my chessboard function:
Code:
Copy      Help
function ARRAY(POINT)&Z a1x a1y squaresize


Z.createlb(8 1 8 1)
int sqaresize=65
int i j x y

x=a1x
for i 1 9 ;;letters
    y=a1y
    for j 1 9
        Z[i j].x=x
        Z[i j].y=y
        y-squaresize
    x+squaresize

Called as following:

Code:
Copy      Help
ARRAY(POINT) Z
MakeChessboardArray Z 188 600 62
int A(1) B(2) C(3) D(4) E(5) F(6) G(7) H(8)

So i know coordinates of each square.

I want to move pieces saying coordinates. For example d2-d4 would move my piece from d2 to d4 using lef d2 coord and lef d4 coord. (lef-/+ draging is not necessary)

Now, do i need to create all voice commands separatly? like d2 said then lef d2 coord. or is there a way to do it more automaticly?


Forum Jump:


Users browsing this thread: 1 Guest(s)