## Search found 117 matches

Jun 02, 2012 22:47
Forum: Projects
Replies: 4
Views: 596

Thanks for playing Roland! I found that it does play correctly most of the time, but every once in a while it will ignore a winning move. I added lines 332-338 If p2Win = 1 Then m8(currPosition).score = -1000000 currDepth = maxDepth ElseIf p1Win = 1 Then m8(currPosition).score = 1000000 currDepth = ...
May 31, 2012 20:12
Forum: Projects
Replies: 4
Views: 596

I sat down a couple of days ago intent on throwing together a playable game, something I had yet to do. I went for four-in-a-row (and I just noticed I'm not the only one lately) because of its simplicity. I did my best to impliment the minimax algo, but the AI still seems a bit buggy. Sometimes it w...
Apr 25, 2012 19:57
Forum: General
Topic: How many operators to overload?
Replies: 3
Views: 340

### How many operators to overload?

I'm working on my own bigNumber code, and I want it to be completely transparent. That is, it should be able to take any numerical data type and convert it to a bigNum, and vice-versa. I would also like this functionality to be invisible to the user. For example: Dim as bigNum bn1 Dim as integer i1 ...
Jan 11, 2009 4:30
Forum: Beginners
Topic: help
Replies: 2
Views: 751
Okay, your main problem was that your score value was a string. You could use a string, but an integer seems much more appropriate. For strings, you would have to use other functions to translate it into useable numbers. (see val(), str() ) You can print integers just like strings. You also need to ...
Jan 10, 2009 20:21
Forum: Projects
Topic: 3D Space movement in OpenGL
Replies: 15
Views: 5255
Kudos for the good commenting and descriptive variable names! That's about as organized as I'd like to be. Just what kind of space shooter are you planning on making with this? Asteroids? Star Control? The Last Starfighter? If you'll be using planets and space stations, I suppose that means gravity ...
Jan 09, 2009 5:30
Forum: Projects
Topic: 3D Space movement in OpenGL
Replies: 15
Views: 5255
Okay, it's been, what, two months since I posted that demo, right? I haven't had much time on the computer for a while, before and after that demo. That was the only thing that I managed to get accomplished in the time that I had -- and I had to squeeze to get that puppy out! To think that the one t...
Jan 07, 2009 5:58
Forum: General
Topic: Sharing information
Replies: 11
Views: 2297
I fear I've mislead you. I'm not really worried about loosing the data. I know that I will when the program ends, but I expect each program to end eventually. I'm actually more concerned about where the data is stored while the program runs, and knowing how the memory is protected. For example: If s...
Jan 06, 2009 7:57
Forum: Beginners
Topic: Is there a simple way to send a dialup email?
Replies: 19
Views: 3672
You never mentioned that you have a dail-up ISP for the system with the phone line. I think it was understood that you do, but do you? Or are your trying to use a modem to send a signal to a computer with an active connection to the internet, using FreeBasic to just to dial the modem into the phone ...
Jan 06, 2009 7:41
Forum: Community Discussion
Topic: Get more data from the "GETMOUSE" command
Replies: 4
Views: 1318
If I can help you, I'll buy the same mouse! The answer can get pretty complex. To put it simply, no you can't use getmouse to get more information unless you overload the getmouse function and do some surgery. It is set up for input from a PS2 mouse, not a usb device. I do think, however, that are a...
Jan 06, 2009 7:11
Forum: General
Topic: SCREEN as an offscreen buffer
Replies: 14
Views: 2132
I don't know, FreeBasic does have some pretty cool graphics caps. You could do worse than enslaving it. Declare Sub MultiPut(Byval lpTarget As Any Ptr= 0, _ Byval xMidPos As Integer= 0, _ Byval yMidPos As Integer= 0, _ Byval lpSource As Any Ptr , _ Byval xScale As Single , _ Byval yScale As Sing...
Jan 06, 2009 6:56
Forum: Projects
Topic: FreeBASIC Grammar Part I
Replies: 15
Views: 4970
I don't understand this at all, but I'm fascinated with the concept. What other subjects could you break down this way. Math, perhaps? Biology? Chemistry? History? Art? Well, yeah. maybe not art.
Jan 06, 2009 6:32
Forum: General
Topic: Sharing information
Replies: 11
Views: 2297
Zippy! Dude! Thanks! (This post is best read aloud, even to yourself!) This is exacly this kind of thing I'm looking for. I gotta ask, how does the the information in the mapped file get handled after the master program exits? I thought there would be some cleanup involed, but I noticed that as long...
Jan 05, 2009 0:07
Forum: General
Topic: Sharing information
Replies: 11
Views: 2297
PS: In a 32bit environment, each process has its own address space and cannot see other processes memory. -Vince That's why I was thinking of using DMA (Direct Memory Access), to force all instances of the program to "see" the same data. You could use TCP/IP to transmit a token of data back and for...
Jan 04, 2009 22:52
Forum: General
Topic: Sharing information
Replies: 11
Views: 2297

### Sharing information

Is it possible to run two instances of the same program, and have a varariable created by one of them in free memory that both instances are able to read and change? Example : Program A has an integer pointer Instance 1 of program A creates a new integer, and assigns its address to the pointer. Inst...
Jan 03, 2009 23:22
Forum: Community Discussion
Topic: chances of 16-bit compiler?
Replies: 11
Views: 3273
And please dont do threats like leaving or walking away , Its starting to take precedence Oh! I didn't mean walking away from the community! No no no no no. I just meant that I would leave this conversation quietly. I was appologizing for intruding. I don't like sounding too off-topic. In fact, I t...