Search:

Type: Posts; User: cakey

Search: Search took 0.01 seconds.

  1. // map 1 if (map = 1) { cout

    // map 1
    if (map = 1)
    {
    cout << "this is map 1\n";
    }

    // map 2
    if (map = 2)
    {
    cout << "this is map 2\n";
  2. Thread: KeyPress Logger

    by cakey
    Replies
    7
    Views
    1,611

    whatpulse.org

    whatpulse.org
  3. Replies
    40
    Views
    3,949

    Yeah, i was thinking about adding to the list as...

    Yeah, i was thinking about adding to the list as it was finding primes so there was no precalc, it just did it as you went along, but i don't know how to impliment that kind of variable array or...
  4. Replies
    40
    Views
    3,949

    Ok I've ended up with 3 different logics, the...

    Ok I've ended up with 3 different logics, the first two are very similar in speed, while the last one is quite a bit slower then causes one of those windows program has encountered an error and has...
  5. Replies
    40
    Views
    3,949

    ok i added that and it has sped it up to a stupid...

    ok i added that and it has sped it up to a stupid speed xD



    #include <iostream>
    #include <math.h>
    using namespace std;

    // varaiables
    int num=0;
  6. Replies
    40
    Views
    3,949

    Therefore double the amount of commands,...

    Therefore double the amount of commands, pointless or not thats exactly what im trying to do; make it as fast as possible.
  7. Replies
    40
    Views
    3,949

    i tried that option, but wouldnt that mean an...

    i tried that option, but wouldnt that mean an extra if command which would probably slow it down?
  8. Replies
    40
    Views
    3,949

    basic prime numbers

    I decided to make a small program that found prime numbers, and after an hour or so of tweaking i came up with something that was about 30 times faster than my first attempt, however I still have a...
  9. Replies
    7
    Views
    1,321

    Yay! Thats the last time I recall a function...

    Yay! Thats the last time I recall a function instead of using a loop: FIXED:



    int aichoosemove()
    {
    aiboard[0][0]=board[0];
    aiboard[0][1]=board[1];
    aiboard[0][2]=board[2];...
  10. Replies
    7
    Views
    1,321

    Have you spotted the problem and now trying to...

    Have you spotted the problem and now trying to help me find it, while me still doing the work, or just suggestign where i should start?

    Either way I can't find it.

    Will return just breakout of...
  11. Replies
    7
    Views
    1,321

    No, thats not the problem, it only takes...

    No, thats not the problem, it only takes unoccupied squares, but it takes multiple turns when it should only take one.
  12. Replies
    7
    Views
    1,321

    tic tac toe(again xD)

    Have a tic tac toe program which works fine expect the computer decides to cheat every once in a while.
    If after making a move it can then win by making another move, for some reason it makes that...
  13. Thread: TicTacToe AI

    by cakey
    Replies
    9
    Views
    3,677

    http://edais.mvps.org/Tutorials/TTTAI/index.html

    http://edais.mvps.org/Tutorials/TTTAI/index.html
  14. Replies
    13
    Views
    1,277

    Decided to now try and add intelligent ai to the...

    Decided to now try and add intelligent ai to the game, and realised it will probably make my life a lot easier if I changed the array into 3x3, are there any complications to this, or anyway that...
  15. Replies
    13
    Views
    1,277

    Also another question, not related but I didn't...

    Also another question, not related but I didn't think it deserved a thread of it's own(too many already).

    I have both:
    Dev-C++(4.9.9.2) - Currently Using
    Visual C++ 2005 Express Edition
    ...
  16. Replies
    13
    Views
    1,277

    dam i suck

    dam i suck
  17. Replies
    13
    Views
    1,277

    Ok, cleaned up the code, merged some functions,...

    Ok, cleaned up the code, merged some functions, deleted others and enabled it to detect a draw...



    #include <cstdio>
    #include <cstdlib>
    #include <iostream>
    using namespace std;

    // ...
  18. Replies
    13
    Views
    1,277

    What's the exact difference between ++i and i++?...

    What's the exact difference between ++i and i++? I know it's something like changing the variable before or after its used in the statement, but only ++i works while i++ makes everything explode ;)
  19. Replies
    13
    Views
    1,277

    Yeah, I see what you mean, im guessing its...

    Yeah, I see what you mean, im guessing its something i'm just going to have to do and will eventually become automatic.

    Anyway, thanks for the other advice and the compliment. Talking of...
  20. Replies
    13
    Views
    1,277

    Thanks a lot =) Knew it was something simple,...

    Thanks a lot =)
    Knew it was something simple, just ha dno idea what...

    Updated code: Any other tips?



    #include <cstdio>
    #include <cstdlib>
    #include <iostream>
  21. Replies
    13
    Views
    1,277

    first ever program - need help =(

    I've decided to dive into the world of C++, and decided as my first attempt i would try making a simple tic tac toe/noughts and crosses game. Basic i know, but im just starting =(

    The game works...
Results 1 to 21 of 21