I want to be able to click on the teapot I have drawn in a room. So far, I can't get it to work. Anyone have any tips? This is killing me! :)
glPushMatrix();
glColor3fv(BLUE);...
Type: Posts; User: javalurnin
I want to be able to click on the teapot I have drawn in a room. So far, I can't get it to work. Anyone have any tips? This is killing me! :)
glPushMatrix();
glColor3fv(BLUE);...
Hi people.
Can anyone figure out why I get screen flicker when I try to run this code?
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <GL/glut.h>
Hmmm. It worked fine for you? did you run it? Because my problem is that it won't start over if I enter yes at the end.
If you look at the bottom of the code, how can I make it so if the user enters "y" or "Y" the program runs again? Right now it just quits either way.
#include <stdio.h>
#include <math.h>...
thanks for all the informative responses. Unfortunately, I'm still very stumped. I'm not the best programmer in the world and trying to teach myself makes it even harder. I think I get how alpha...
So here's one for ya. I have this gomoku (5 ina row tic tac toe) code and I want to change it so the computer AI is not super stupid. Currently, all the computer does is put a piece in the first...
argh! I still can't figure this out. I'm trying to debug using MS visual studio. I get weird values for newboard.
Anyone know what that is?
That's kinda the problem. I can't figure out where it overwrite the memory
Another thought... Maybe the problem is in my recursion in minmaxAB()? I'm confused. Here's some snippets.
int minimaxAB(int computer, int plyr, int EMPTY, int depth, int max_depth,
...
I'm doing this in Linux by the way... I tried to build it in MS Visual Studio and when I debug I get this:
So I'm thinking it's everywhere newboard is. So maybe the error is in the first...
I have this code that is supposed to play connect 4. The problem is that it hangs almost right away. Nothing ever get printed to the board. Can anyone help?
#include <stdio.h>
#include...