Search found 197 matches

by ron77
Jul 01, 2021 8:17
Forum: Beginners
Topic: sorting and query algorithms
Replies: 4
Views: 250

sorting and query algorithms

hello here is an example of sorting algorithms 1. bubble sorting an array 2. simple query 3. binary query #Include "crt.bi" Dim As String sFruits(...) = { _ "banana","apple","tomato","orange", _ "lime","pineapple","grape"...
by ron77
Jul 01, 2021 8:07
Forum: Beginners
Topic: engine of a dynamic chatbot with database
Replies: 3
Views: 231

Re: engine of a dynamic chatbot with database

hello @fxm and @BasicCoder2 thanks for replying - I will try to give a link to freebasic community forum in my forum (to this forum)... as for the abilities of simple chatbots (or chatbox) yes there is still much to go before they become more human-like empathy... I hope to see you and others come m...
by ron77
Jun 30, 2021 15:31
Forum: Beginners
Topic: engine of a dynamic chatbot with database
Replies: 3
Views: 231

engine of a dynamic chatbot with database

hi, all here is a chatbot that uses a text file as a database but instead of using multiple dynamic arrays, it uses an array of UDT with two arrays inside (one for keywords second for replies). that way the code is more dynamic and fewer lines of code :) the BAS file: Screen 19 Type ArraySet ReDim K...
by ron77
May 03, 2021 12:13
Forum: Community Discussion
Topic: a new BASIC languages forum
Replies: 1
Views: 455

a new BASIC languages forum

hello there... just wanted to give a link to a BASIC programming new forum that has a freebasic section in it - this forum isn't mine but was opened by a friend of mine from discord and i was invited and joined it's called "friend's-of-basic" link: https://friends-of-basic.freeforums.net/ ...
by ron77
Apr 17, 2021 8:33
Forum: Community Discussion
Topic: invitation to a IRC channel
Replies: 3
Views: 398

invitation to a IRC channel

hello... i have a private IRC channel - #broken_dreams it's a private IRC channel that is it's a public one but pretty much empty... i would like to invite members or guests that would like to receive or to give help in FB programming or at least try to in that channel - i'm not trying t...
by ron77
Apr 15, 2021 11:58
Forum: Game Dev
Topic: tower of hanoi game
Replies: 2
Views: 373

Re: tower of hanoi game

hello - i got help from @mysoft in IRC channel... this is his solution to the tower of hanoi game: #include "fbgfx.bi" #include "crt.bi" type Pole bDiscs(8-1) as byte 'disc number on each slot on the pole iNumDiscs as integer 'discs on this pole end type CONST AS SHORT scr_w = 80...
by ron77
Apr 15, 2021 10:43
Forum: Game Dev
Topic: tower of hanoi game
Replies: 2
Views: 373

tower of hanoi game

hello... i need some help with a "hanoi tower" game code... i'm trying to make the game solve itself with an algorithm i found on the net... here is the site with the algorithm (it's a recursive one) https://www.hackerearth.com/blog/developers/tower-hanoi-recursion-game-algorithm-explained...
by ron77
Apr 10, 2021 16:36
Forum: Game Dev
Topic: a roguelike game converted from cpp to FB
Replies: 17
Views: 1256

Re: a roguelike game converted from cpp to FB

hello dudicat... nice... you gave the macro for arrayinsert... however what i need is actually to delete/remove from the array... :-/ i'm trying to figure out how to modify the macro but don't seem to understand how... you wouldn't have the arraydelete/arrayremove macro code hidden somewhere by chan...
by ron77
Apr 10, 2021 8:54
Forum: Game Dev
Topic: a roguelike game converted from cpp to FB
Replies: 17
Views: 1256

Re: need help coding a roguelike game

well... the project is done... finished... completed... here is the repository on github... https://github.com/ronblue/fb_rogelike_2 the only problem i can think of is that in the c++ tutorial the dude uses a vector of monsters while i use a dynamic array of monsters so when a monster is killed in c...
by ron77
Apr 09, 2021 18:21
Forum: Game Dev
Topic: a roguelike game converted from cpp to FB
Replies: 17
Views: 1256

Re: need help coding a roguelike game

okay... i got help from hesekiel on the discord FB server (yes i'm still on discord) seemed that _levelData() array was being out of bound therefore i changed the getTile() function to this FUNCTION Level.getTile(x AS long, y AS LONG) AS STRING if y>ubound(this._levelData) then PRINT "y is larg...
by ron77
Apr 09, 2021 16:04
Forum: Game Dev
Topic: a roguelike game converted from cpp to FB
Replies: 17
Views: 1256

Re: need help coding a roguelike game

hello MrSwiss...

thank you for taking the time and effort to help me...

i've changed al the integer's in my code to long but the runtime error still remains - what else should you think i should change?
by ron77
Apr 09, 2021 14:32
Forum: Game Dev
Topic: a roguelike game converted from cpp to FB
Replies: 17
Views: 1256

Re: need help coding a roguelike game

well i've worked further on this tutorial - seems like two steps forward one step backwards i've added the monster move and AI to the monsters (enemies ?? monsters?? ) now i have this runtime error: Aborting due to runtime error 6 (out of bounds array access) at line 130 of D:\repo\FreeBasic_Project...
by ron77
Apr 09, 2021 11:49
Forum: Game Dev
Topic: a roguelike game converted from cpp to FB
Replies: 17
Views: 1256

Re: need help coding a roguelike game

well managed to get over and fix the flickering and the game works... but i still need to add the monsters movement and for then to attack the player... i'll take a break and return to further on with this game...
by ron77
Apr 09, 2021 11:09
Forum: Game Dev
Topic: a roguelike game converted from cpp to FB
Replies: 17
Views: 1256

Re: need help coding a roguelike game

well managed to resolved all the errors and make the game compile and run BUT!... now the print of the level is flickering for some reason....

:-/ :-( i'm just about to give up on this roguelike game conversion from c++ to freebasic... :(
by ron77
Apr 09, 2021 10:24
Forum: Game Dev
Topic: a roguelike game converted from cpp to FB
Replies: 17
Views: 1256

Re: need help coding a roguelike game

well looks like i've party too soon... i went on with the tutorials to add enemies (monsters) with a enemy class both player class and enemy have constructors so i'm getting errors about duplicate definitions here is the tutorial at time 01:20 for reference: https://youtu.be/tVWckBaB5xo?t=5043 here ...

Go to advanced search