Search found 726 matches

by grindstone
Jul 14, 2020 13:08
Forum: Beginners
Topic: TSNE problem.
Replies: 14
Views: 495

Re: TSNE problem.

AFAIK TSNE can't handle https yet. I would recommend using libcurl for that kind of download. #Include Once "curl.bi" #Include "vbcompat.bi" Type tCurlInfo curl As CURL Ptr ff As Integer totlen As Double dllen As Double timeout As Double = 3.0 process As boolean = FALSE content A...
by grindstone
Jul 09, 2020 12:53
Forum: Game Dev
Topic: making a text adventure game
Replies: 6
Views: 301

Re: making a text adventure game

Bill has eyes Jane has eyes Harry has eyes Susan has eyes vs. People have eyes. Bill is a person thus Bill probably has eyes. Sounds like a clear case for inheritance. Alas, I never worked with inheritance, so I can't give any tips. I don't know if it is handy for this adventure, but I consider it ...
by grindstone
Jul 08, 2020 12:10
Forum: Game Dev
Topic: making a text adventure game
Replies: 6
Views: 301

Re: making a text adventure game

Another 3 suggestions: 1) A list of actions that can be done with the items: Type ITEM As String iName 'key, chest, apple, gem, ... As Integer state As String states(1 To 2) As String action(Any) As Integer location 'where the item resides End Type Dim As ITEM i1 ReDim i1.action(1 To 6) i1.action(1)...
by grindstone
Jul 07, 2020 11:06
Forum: General
Topic: Warming up PRNGs
Replies: 5
Views: 245

Re: Warming up PRNGs

Then I got you wrong, sorry once more. That reminds me of when I was about 15 or 16, the father of a classmate had a high-end turntable, and one day we played some of our party records on it, expecting a real great sound. Instead every dust grain sounded like an explosion...
by grindstone
Jul 07, 2020 9:58
Forum: General
Topic: Warming up PRNGs
Replies: 5
Views: 245

Re: Warming up PRNGs

With Hi-Fi if we spend very little on the source hardware and a lot on the speakers then we will not get good audio. We need to spend more on the source hardware and less on the speakers. Even with cheap speakers the quality of the audio may not be too bad. I'm sorry, but on this point I must contr...
by grindstone
Jul 07, 2020 9:31
Forum: Game Dev
Topic: making a text adventure game
Replies: 6
Views: 301

Re: making a text adventure game

In my opinion it would make things easier if every location as well as the player (agent) had its own item array (and the SUBs to manage it): ScreenRes 960,500,32 Type ITEM As String iName 'key, chest, apple, gem, ... As Integer state As String states(1 To 2) As Integer location 'where the item resi...
by grindstone
Jul 05, 2020 7:01
Forum: Community Discussion
Topic: Getting old
Replies: 39
Views: 1587

Re: Getting old

@TeeEmCee: Thank you for looking out that surveys, I find them quite interesting, seems today's youth is better than their reputation. *grin* I was surprised that there are programmers who don't know C, for I think you simply can't get around that language if you seriously deal with coding. And mayb...
by grindstone
Jul 03, 2020 19:50
Forum: Community Discussion
Topic: Getting old
Replies: 39
Views: 1587

Re: Getting old

Thank you, guys. You make me feel young again (2^6-2^2) ;-)

Just for curiosity: Does anybody know what programming language(s) today's coding - juniors use? Do they code at all? Or do they content theirselfes with slandering at the social media?
by grindstone
Jun 30, 2020 21:54
Forum: General
Topic: Open program by dragging file "onto it"
Replies: 15
Views: 590

Re: Open program by dragging file "onto it"

No problem, with only a litte more effort you can evaluate any line of text you dropped onto the (console-) window of a running FB program: Dim As String text, g Dim As boolean flag text = "" flag = FALSE Do g = InKey If Len(g) Then flag = TRUE text += g EndIf If g = "" AndAlso f...
by grindstone
Jun 30, 2020 21:16
Forum: General
Topic: Open program by dragging file "onto it"
Replies: 15
Views: 590

Re: Open program by dragging file "onto it"

Why that complicated? It can be done with just one single line of code:

Code: Select all

Shell Chr(34) & Command(1) & Chr(34)
by grindstone
Jun 21, 2020 12:47
Forum: Beginners
Topic: Any suggestions on the best way to set up a linked list?
Replies: 24
Views: 1073

Re: Any suggestions on the best way to set up a linked list?

What I find most frustrating is that I used to know this stuff, though I didn't realise quite what a can of worms I was opening when I started. Welcome to the club! And now use that worms to get a big fish. ;-) If it wasn't for the idea of being able to put things in things etc the implementation w...
by grindstone
Jun 20, 2020 11:40
Forum: Beginners
Topic: Any suggestions on the best way to set up a linked list?
Replies: 24
Views: 1073

Re: Any suggestions on the best way to set up a linked list?

The list doesn't necessarily have to be organized as a chain or a tree. Here an example of 6 rooms arranged in a 3-by-2 - grid: Enum N E S W End Enum Type tRoom Dim As tRoom Ptr door(3) 'contains the pointer of the room you get to if you walk through the door Dim As String text Dim As Integer number...
by grindstone
Jun 19, 2020 20:44
Forum: Beginners
Topic: Any suggestions on the best way to set up a linked list?
Replies: 24
Views: 1073

Re: Any suggestions on the best way to set up a linked list?

Alright, let's do it step by step. As a start a very basic first approach to create and handle a double linked list representing a tree structure. You can create an arbitrary number of rooms and walk through them: Type tRoom Dim As Integer level Dim As Integer roomNumber Dim As tRoom Ptr parent 'poi...
by grindstone
Jun 18, 2020 23:04
Forum: Beginners
Topic: Any suggestions on the best way to set up a linked list?
Replies: 24
Views: 1073

Re: Any suggestions on the best way to set up a linked list?

Looks like you're working to write an adventure game, right? In this case, using a linked list would be a pretty good idea.
by grindstone
Jun 18, 2020 22:42
Forum: General
Topic: Duplicates
Replies: 34
Views: 1382

Re: Duplicates

One (serious) question: Is it really faster to make CRC16 hashes of two strings and compare the hashes than directly comparing the strings for equality?

Go to advanced search