Post Reply 
Sudoku editor/Solver
02-01-2015, 01:48 PM (This post was last modified: 02-01-2015 01:58 PM by Thomas_Sch.)
Post: #13
RE: Sudoku editor/Solver
(02-01-2015 01:26 PM)lenborje Wrote:  
(01-31-2015 04:14 PM)Thomas_Sch Wrote:  Hello lenborje,
many thanks for your program! Now i mastered to get it running on the prime.

I have two suggestions:
1. because your files are more or less pure text (and not .hprpgm), you should
name it *.txt. I've tried to send the .hpprgm via connectivity kit to the prime,
this did not work. Opening your files with notepad++, converting line endings
to windows type, and copying the code to the connectivity kit helped.
Well, I guess guess I need some help here...

I don't have windows so I can't use the connectivity kit. I have Mac and use libhpcalcs, a command-line utility. When I transfer the Sudoku program from my Prime to my Mac I get a file called "Sudoku.hpprgm", encoded in 16-bit unicode, which I believe should be native to Windows. But I should perhaps also convert it to DOS line endings?

To be able to edit the file on my Mac I first convert it to UTF-8 encoding. This file is called "Sudoku.utf8.hpprgm". I don't know if this file can be used on Windows.

Which file did you use on Windows?

(01-31-2015 04:14 PM)Thomas_Sch Wrote:  2. In line 241 there is a call to subroutine BIT(), this led to an syntax error.
Code:
    MSGBOX("Possible digits are: "+STRING(BITS(displayGrid(highlightR,highlightC))));
I changed this call to BitS(), then the syntax error is away.

Thank you for finding this bug. (I have another program on my Prime which exports a "BITS" function, essentially the same as "BitS" in the Sudoku program.)
I you could tell which of my files you used on Windows I shall update my post with correct line encoding for Windows.

Hello Lennart,

Both of your files open fine in editors like notepad++, SciTe or jedit.
In standard notepad (included in windows) the line breaks are missing.

I'll add the text-File with the windows-line-endings for you (exported from program editor out of connectivity kit).

If I re-transfer the program from Prime via connectivity kit to a folder (drag-and-drop), I will get a file with the ending .hpprgm .
These are non-text files in windows.
For comparison i add also this .hpprgm-File. If you are opening this file in an editor, you will see the difference.

If I open the files from your zip, for example with notepad++, they open as native text files, therefore they should habe the file type .txt.

Thomas


Attached File(s)
.zip  Sudoku v1.2 .zip (Size: 16.28 KB / Downloads: 19)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Sudoku editor/Solver - lenborje - 12-02-2014, 08:29 PM
RE: Sudoku editor/Solver - Mic - 12-03-2014, 07:10 PM
RE: Sudoku editor/Solver - lenborje - 12-04-2014, 07:06 AM
RE: Sudoku editor/Solver - lenborje - 12-04-2014, 01:18 PM
RE: Sudoku editor/Solver - Gerald H - 12-08-2014, 03:14 PM
RE: Sudoku editor/Solver - lenborje - 12-09-2014, 07:58 AM
RE: Sudoku editor/Solver - Han - 12-09-2014, 12:55 AM
RE: Sudoku editor/Solver - lenborje - 12-09-2014, 07:51 AM
RE: Sudoku editor/Solver - Han - 12-09-2014, 01:48 PM
RE: Sudoku editor/Solver - lenborje - 01-31-2015, 02:26 PM
RE: Sudoku editor/Solver - Thomas_Sch - 01-31-2015, 04:14 PM
RE: Sudoku editor/Solver - lenborje - 02-01-2015, 01:26 PM
RE: Sudoku editor/Solver - Thomas_Sch - 02-01-2015 01:48 PM
RE: Sudoku editor/Solver - lenborje - 02-01-2015, 08:52 PM
RE: Sudoku editor/Solver - Thomas_Sch - 02-02-2015, 08:12 AM
RE: Sudoku editor/Solver - debrouxl - 02-02-2015, 08:33 AM
RE: Sudoku editor/Solver - Guenter Schink - 12-20-2016, 03:37 PM
RE: Sudoku editor/Solver - lenborje - 12-20-2016, 03:40 PM
RE: Sudoku editor/Solver - Guenter Schink - 12-20-2016, 04:11 PM
RE: Sudoku editor/Solver - lenborje - 12-21-2016, 02:57 PM
RE: Sudoku editor/Solver - Guenter Schink - 12-21-2016, 04:25 PM
RE: Sudoku editor/Solver - lenborje - 12-21-2016, 04:42 PM
RE: Sudoku editor/Solver - Guenter Schink - 12-21-2016, 05:02 PM
RE: Sudoku editor/Solver - debrouxl - 12-20-2016, 07:35 PM
RE: Sudoku editor/Solver - lenborje - 12-20-2016, 07:37 PM
RE: Sudoku editor/Solver - lenborje - 12-22-2016, 08:57 AM



User(s) browsing this thread: 4 Guest(s)