Search:

Type: Posts; User: javalurnin

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    4,636

    I'm lost with mouse motion OpenGL

    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);...
  2. Replies
    3
    Views
    2,115

    why do I get screen flicker?

    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>
  3. Hmmm. It worked fine for you? did you run it?...

    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.
  4. how can I get the program to loop back into itself?

    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>...
  5. Replies
    7
    Views
    2,484

    thanks for all the informative responses....

    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...
  6. Replies
    7
    Views
    2,484

    make the computer smarter

    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...
  7. Replies
    11
    Views
    3,747

    argh! I still can't figure this out. I'm trying...

    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?
  8. Replies
    11
    Views
    3,747

    That's kinda the problem. I can't figure out...

    That's kinda the problem. I can't figure out where it overwrite the memory
  9. Replies
    11
    Views
    3,747

    Another thought... Maybe the problem is in my...

    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,
    ...
  10. Replies
    11
    Views
    3,747

    I'm doing this in Linux by the way... I tried to...

    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...
  11. Replies
    11
    Views
    3,747

    Can anyone help?

    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...
Results 1 to 11 of 11