Welcome, Guest. Please login or register.


Author Topic: SUDOKU Solver in IS-BASIC (Read 1936 times)

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14738
  • Country: hu
    • http://enterprise.iko.hu/
SUDOKU Solver in IS-BASIC
« on: 2023.December.12. 21:35:25 »
Thanks!

I've almost finished the IS-BASIC versión but the execution is tremendously slow.
You can try to compile with Zzzip. (But it has a few limitations.)
« Last Edit: 2023.December.13. 12:02:50 by szipucsu »

Offline nicalejo

  • Newbie
  • Posts: 12
Re:SUDOKU Solver in IS-BASIC
« Reply #1 on: 2023.December.12. 21:46:06 »
Yes, I know it, but taking profit of the structured basic capabilities I filled all the procedures with local variables. This is something that needs to be changed with Zzzip. Once the basic code is finished I'l try to change all this stuff in order to zzzip can compile the code.

Thanks

Offline szipucsu

  • Global Moderator
  • EP addict
  • *
  • Posts: 9950
  • Country: hu
    • Támogató Támogató
    • Webnyelv.hu - Tanuljunk nyelveket!
Re:SUDOKU Solver in IS-BASIC
« Reply #2 on: 2023.December.13. 12:08:38 »
Zzzip may compile programs with local variables too. It doesn't always cause problems, I think. You can try it.
100 SOUND SOURCE 2,STYLE 128,PITCH 25.2,SYNC 1
110 SOUND PITCH 25,SYNC 1
120 ! Videos

Offline SlashNet

  • EP addict
  • *
  • Posts: 1213
  • Country: ua
  • Enterprise 128K | Cubietruck
    • My old site about Enterprise
Re:SUDOKU Solver in IS-BASIC
« Reply #3 on: 2023.December.13. 14:41:17 »
Zzzip may compile programs with local variables too. It doesn't always cause problems, I think. You can try it.

If I not mistaken, Zzzzip doesn't like same names of local and global variables.

Offline nicalejo

  • Newbie
  • Posts: 12
Re:SUDOKU Solver in IS-BASIC
« Reply #4 on: 2023.December.13. 18:12:26 »
Yes, I've to rename all the local variables coincident in name. Not a big work but I let it until finished.

Thanks

Offline nicalejo

  • Newbie
  • Posts: 12
Re:SUDOKU Solver in IS-BASIC
« Reply #5 on: 2023.December.15. 04:08:32 »
As I told before, here is basic version of the program . It is extremely slow. I checked it in the emulator using the full speed option.

I had several comments in source using the character ! and almost finishing the code gave me always a runtime error "Insuficient memory". That took me crazy. Once removed the comments everything is ok. Maybe a bug in the basic or the vi editor writing some extrange character with the !

Anyway here it is

[ Guests cannot view attachments ]
[ Guests cannot view attachments ]

Offline geco

  • EP addict
  • *
  • Posts: 7120
  • Country: hu
    • Támogató Támogató
Re: SUDOKU Solver in IS-BASIC
« Reply #6 on: 2023.December.15. 08:26:59 »
you could try to keep everything in one page with PRINT AT, i think it would save also memory.

Offline nicalejo

  • Newbie
  • Posts: 12
Re: SUDOKU Solver in IS-BASIC
« Reply #7 on: 2023.December.15. 10:31:20 »
Just a dozen of comments made the execution crash. I cleaned all and works. Maybe the vi editor under Macos (I used it) inserted something abnormal for the basic interpreter.