Picomite/PicoMiteVGA V5.07.05 release candidates


Author Message
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4271
Posted: 07:09pm 30 Sep 2022      

@Peter,

Running pico VGA 5.07.05RC4
Trying to port bar1010's CMM2 chess example to pico.
Stripped most graphics
Renamed "search" to "asearch" since search seems to be a keyword (MMEdit5 says).
Changed the TEXT to simple print.

The engine seems to run, but the code starts modifying itself....

See below
RUN
Tom Kerrigan's Simple Chess Program
(TSCP) version 1.81c, 2/3/19
Copyright 2019 Tom Kerrigan
MMBasic conversion by ceptimus
version 0.9g 29/11/19
"help" displays a list of commands
tscp>
help

on - computer plays
    for the side to move
off - computer stops playing
st n - search for n secs per move
sd n - search n ply per move
undo - takes back a move
new - starts a new game
v - view board from opposite side
bench - run the built-in benchmark
bye - exit the program
Enter moves in coordinate notation
              e.g., e2e4, e7e8Q
tscp>
on

Computer's move: d2d4
tscp>
d7d5

Computer's move: g1f3
tscp>
b8a6

ply    nodes  score  pv
 1       34     50
b1c3

[91] If n=-1 Then Len(
Error : Expected closing bracket
>


Line 91 in the code says
If n=-1 then exit do


The program stalls, and pico needs to re-power to start again.
Below is the code.

chess_try.zip

Is this a stack/heap issue (to much memory used by thinking too deep ?)

Volhout