Alchemy - A word Game
#29
(05-08-2022, 03:10 PM)bplus Wrote: It seems to work OK if don't try anything illegal but I tried BAD right after BIG, by sound it knew it was incorrect but left BAD word up on screen.  Nope haven't figured out how it handles words off by more than 1 letter, I suppose you have to count wrong words on the way?

BTW use escape key for quit Ascii 27, so you can use Q words.   Nope it works as is. 

1411 Q words, there were 24,347 lines in the file, takes longer than it has to. 
Code: (Select All)
For i = 1 To 26
    letter$ = Chr$(i + 64)
    filename$ = letter$ + "-Words.txt" '  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< fix line 207 select dictionary file of first letter of try-word
    Open filename$ For Input As #1
    Open "temp.txt" For Output As #2
    While Not EOF(1)
        Input #1, fline$
        If _Trim$(fline$) <> "" Then Print #2, fline$
    Wend
    Close
    Kill filename$
    Name "temp.txt" As filename$
Next
I used following code to remove all the blank lines in the Letter Files:
Hi @bplus
I've got the computer up and running again, after re-installing Windows.
I'm able to create progs again in QB64, and they compile ok.
But when I place the code above into the editor and try to run it, it says"compilation faied (C++)".
Should I be able to do this?  Huh
(I've white-listed the QB64 folder)
Reply


Messages In This Thread
Alchemy - A word Game - by PhilOfPerth - 05-07-2022, 04:12 AM
RE: Alchemy - A word Game - by bplus - 05-07-2022, 05:13 PM
RE: Alchemy - A word Game - by vince - 05-07-2022, 07:48 PM
RE: Alchemy - A word Game - by bplus - 05-07-2022, 08:12 PM
RE: Alchemy - A word Game - by PhilOfPerth - 05-07-2022, 11:06 PM
RE: Alchemy - A word Game - by PhilOfPerth - 05-07-2022, 11:19 PM
RE: Alchemy - A word Game - by bplus - 05-07-2022, 11:32 PM
RE: Alchemy - A word Game - by PhilOfPerth - 05-07-2022, 11:33 PM
RE: Alchemy - A word Game - by bplus - 05-07-2022, 11:40 PM
RE: Alchemy - A word Game - by PhilOfPerth - 05-07-2022, 11:40 PM
RE: Alchemy - A word Game - by bplus - 05-07-2022, 11:42 PM
RE: Alchemy - A word Game - by PhilOfPerth - 05-08-2022, 12:00 AM
RE: Alchemy - A word Game - by PhilOfPerth - 05-08-2022, 12:21 AM
RE: Alchemy - A word Game - by PhilOfPerth - 05-08-2022, 12:48 AM
RE: Alchemy - A word Game - by bplus - 05-08-2022, 02:36 AM
RE: Alchemy - A word Game - by PhilOfPerth - 05-08-2022, 04:40 AM
RE: Alchemy - A word Game - by PhilOfPerth - 05-08-2022, 04:43 AM
RE: Alchemy - A word Game - by gaslouk - 05-08-2022, 09:03 AM
RE: Alchemy - A word Game - by PhilOfPerth - 05-08-2022, 09:50 AM
RE: Alchemy - A word Game - by bplus - 05-08-2022, 03:02 PM
RE: Alchemy - A word Game - by bplus - 05-08-2022, 03:10 PM
RE: Alchemy - A word Game - by PhilOfPerth - 05-11-2022, 06:22 AM
RE: Alchemy - A word Game - by PhilOfPerth - 05-09-2022, 12:13 AM
RE: Alchemy - A word Game - by PhilOfPerth - 05-09-2022, 01:31 AM
RE: Alchemy - A word Game - by bplus - 05-09-2022, 03:21 AM
RE: Alchemy - A word Game - by PhilOfPerth - 05-11-2022, 06:35 AM
RE: Alchemy - A word Game - by bplus - 05-09-2022, 03:31 AM
RE: Alchemy - A word Game - by bplus - 05-09-2022, 03:39 AM
RE: Alchemy - A word Game - by bplus - 05-09-2022, 08:39 PM
RE: Alchemy - A word Game - by PhilOfPerth - 05-09-2022, 10:56 PM
RE: Alchemy - A word Game - by PhilOfPerth - 05-11-2022, 07:27 AM



Users browsing this thread: 15 Guest(s)