Jump to content



Photo
- - - - -

Tictactoe


  • Please log in to reply
2 replies to this topic

#1 Tictactoe

Tictactoe

    Newbie

  • Members
  • Pip
  • 4 posts

  • Calculators:
    Casio fx-9860GII

Posted 15 November 2016 - 12:24 PM

Normaly people make the grid for tictactoe with locate
Locate 10,2,"| |"
Locate 9,3,"-+-+-"
Locate 10,4,"| |"
Locate 9,5,"-+-+-"
Locate 10,6,"| |
But I made a tictactoe grid with f-lines
After that i made a do getkey loop. You can see the grid only for a shorttime than you see the amount of getkey
. My Question is how can i make that the grid will stay all time and the getkey is unseen. So i can Press for e.g 1 for getkey 72 and than with
if getkey 72
then circle a,b,c / or f-line:f-line
If end
To make a circle or an x in one of the boxes of the tictactoe grid
2. My second question is how can i combiene sketch and variable for e.g i want that the solution of ?→x is in a box.

Edited by Tictactoe, 15 November 2016 - 03:26 PM.

  • Tictactoe likes this

#2 frankmar98

frankmar98

    Casio Freak

  • Moderator
  • PipPipPipPip
  • 127 posts
  • Gender:Male
  • Location:Spain
  • Interests:Science, programming

  • Calculators:
    CFX-9970G
    Graph 90+E (fx-GC50)
    fx-9860G SD
    Classpad 300
    HP Prime
    TI-84+ CE-T
    x2 TI-83+
    TI-81
    fx-4800p, fx-3650PII
    fx-991SPX, fx-991ES PLUS, fx-100W

Posted 15 November 2016 - 06:09 PM

The first question:

 

To optimize the program and don't let the grid dissapear you can use the Statistics graph commands, this is useful for sprittes containing a lot of lines:

 

http://community.cas...drawing-method/

 

This will make the re-drawing process faster.

 

The second question:

 

The Casio Basic variant of the fx-9860G series doesn't include a msgbox or similar command.

 

But you can make a subroutine for displaying a variable in a box with the locate command and drawing lines for building the box.

 

P.D: You may have to adjust a bit the drawing method from the CFX language to the fx-9860G series one, but there are very similar.

 

Luck!



#3 Tictactoe

Tictactoe

    Newbie

  • Members
  • Pip
  • 4 posts

  • Calculators:
    Casio fx-9860GII

Posted 15 November 2016 - 08:38 PM

Thanks.
Thanks.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users