Search found 3456 matches

by BasicCoder2
Jun 30, 2020 17:06
Forum: General
Topic: Embedding a Spreadsheet
Replies: 29
Views: 725

Re: Embedding a Spreadsheet

I have never used spreadsheets, I don't know how functions are represented in them. sorry. How I would imagine it is as a 2d array of values. It can assume a cell contains an expression and the value in that cell will be the result of the evaluation of that expression. A simple expression might be ...
by BasicCoder2
Jun 28, 2020 1:45
Forum: Projects
Topic: Old school text adventure as a way of re-learning coding
Replies: 24
Views: 650

Re: Old school text adventure as a way of re-learning coding

@olympic sleeper: do you plan to have conversations? Graphic adventure games usually have other characters to fight, to buy things from and have simple conversations. A character might provide information to the player or be a source of some item the player might need. It seems to me the difference...
by BasicCoder2
Jun 27, 2020 19:23
Forum: Projects
Topic: Old school text adventure as a way of re-learning coding
Replies: 24
Views: 650

Re: Old school text adventure as a way of re-learning coding

‘say hello to shopkeeper and then buy a shirt from them' This doesn't make sense, them is for plural, shopkeeper is only one. So how would you write it when the gender of the shopkeeper is unknown? "Singular they is the use in English of the pronoun they or its inflected or derivative forms, t...
by BasicCoder2
Jun 27, 2020 13:36
Forum: Projects
Topic: Old school text adventure as a way of re-learning coding
Replies: 24
Views: 650

Re: Old school text adventure as a way of re-learning coding

However, the OP stated he wanted something like Zork, which was notorious for being able to parse virtually any input. Sure I understood that. So the first thing I did was search the internet for an explanation or at least a description of how Zork parses a sentence. One such page seemed to indicat...
by BasicCoder2
Jun 27, 2020 1:39
Forum: Projects
Topic: Old school text adventure as a way of re-learning coding
Replies: 24
Views: 650

Re: Old school text adventure as a way of re-learning coding

I assume a user will soon learn what kinds of sentences the game can handle and the game can always request the sentence be repeated another way or in a simpler form or even as a series of sentences. Just as we adjust our sentences according to the age of the listener so to we can adjust our sentenc...
by BasicCoder2
Jun 26, 2020 23:21
Forum: Projects
Topic: Old school text adventure as a way of re-learning coding
Replies: 24
Views: 650

Re: Old school text adventure as a way of re-learning coding

Perhaps break the sentence into parts, " get the red shirt", " get the blue shirt", " put them on the shelf" So you have two get commands and "them" can become a label for all the things that the agent has in the have list? Thus "get the red shirt" b...
by BasicCoder2
Jun 21, 2020 21:11
Forum: Beginners
Topic: Any suggestions on the best way to set up a linked list?
Replies: 24
Views: 702

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

Hi basiccoder2. You have done a lot of this kind of stuff, an agent and an environment. But the specific question was for any suggestions on the best way to set up a linked list and others can demonstrate that better than I can although often with fairly unreadable code to someone like me. My impre...
by BasicCoder2
Jun 20, 2020 22:38
Forum: Beginners
Topic: Any suggestions on the best way to set up a linked list?
Replies: 24
Views: 702

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

After trying to figure out what you are trying to do it seems to me you need a simple example which can be extended without adding complexity. You also seem to be concentrating on the coding part (pointers, linked lists and so on..) when I would suggest you need a higher level description of what yo...
by BasicCoder2
Jun 19, 2020 21:03
Forum: Beginners
Topic: Any suggestions on the best way to set up a linked list?
Replies: 24
Views: 702

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

You seemed to have concluded a linked list is the solution to how to represent this "world"? To me you seem to be describing a tree structure. The trunk is "everything" and branch nodes are things that contain things or spatial relationships. It reminds me of semantic networks an...
by BasicCoder2
Jun 01, 2020 23:30
Forum: Community Discussion
Topic: BASIC is not BASIC anymore
Replies: 10
Views: 648

Re: BASIC is not BASIC anymore

BASIC was the first HLL that a novice could use to write programs that would run on different CPU's. Although line numbers and GOSUBS and short variable names were rather low level solutions for reasons of limited memory at the time. Before that I remember looking at Fortran code and thinking how gr...
by BasicCoder2
May 30, 2020 0:12
Forum: Game Dev
Topic: Yet Another Connect Four
Replies: 9
Views: 498

Re: Yet Another Connect Four

Well, define "intelligence" please :-) Is AlphaGo intelligent? Or just AlphaGo programmers? Is a dolphin intelligent? Would it be able to play 'connect four'? If the 'dumbest' algorithm thinkable running on a million computers parallel can beat every human, is it intelligent? A neural net...
by BasicCoder2
May 29, 2020 19:21
Forum: Game Dev
Topic: Yet Another Connect Four
Replies: 9
Views: 498

Re: Yet Another Connect Four

Although I dislike the monopoly of google I must confess I use it all the time. The internet is a rich source of information on many topics. So you don't use any search engine? Although I used to gain all my knowledge through books Amazon has destroyed the ability of physical outlets to stock the te...
by BasicCoder2
May 29, 2020 9:48
Forum: Game Dev
Topic: Yet Another Connect Four
Replies: 9
Views: 498

Re: Yet Another Connect Four

You might get some AI ideas if you google,
how to win at connect 4
by BasicCoder2
May 28, 2020 20:20
Forum: Community Discussion
Topic: 15 years of freeBASIC forum?
Replies: 7
Views: 331

Re: 15 years of freeBASIC forum?

And how many of the first adopters of FreeBASIC are still here? I noticed D.J.Peters was one of the early members with 8023 posts. It is of course not how many posts that count rather it is the quality of the posts and D.J.Peters provided quality posts. In some ways I have mixed feeling about FreeBA...

Go to advanced search