Search found 19 matches

by KillerDonkey
September 19th, 2012, 4:11 pm
Forum: Everything
Topic: Lesson 12 Homework Help
Replies: 5
Views: 2502

Re: Lesson 12 Homework Help

Alright i figured it out with this: void Game::AIGetNextMoveRand() { //check horizontal if(s0==O&&s1==O&&s2==EMPTY) { do{ aimovex = 2; aimovey = 0; }while( GetSquareState( aimovex,aimovey ) != EMPTY ); } else if(s1==O&&s2==O&&s0==EMPTY) { do{ aimovex = 0; aimovey = 0; }while( GetSquareState( aimovex...
by KillerDonkey
September 19th, 2012, 3:49 pm
Forum: Everything
Topic: Lesson 12 Homework Help
Replies: 5
Views: 2502

Re: Lesson 12 Homework Help

isnt the do..while statement in each making sure that the space is empty before it decides to place it?
by KillerDonkey
September 19th, 2012, 3:03 pm
Forum: Everything
Topic: Lesson 12 Homework Help
Replies: 5
Views: 2502

Lesson 12 Homework Help

Hello people of Chili I am having troubles with the making a better AI part of the homework, I have successfully made it smart and it makes smart moves but when it realizes its going to be a tie game it decides to stop playing and crashes the program, any help would be thankful.
by KillerDonkey
September 12th, 2012, 4:33 pm
Forum: Everything
Topic: Run Application Shortcut Not Working
Replies: 2
Views: 1614

Re: Run Application Shortcut Not Working

Oh I didn't even notice, didn't think that made a difference but it worked lol thank you.
by KillerDonkey
September 12th, 2012, 3:58 pm
Forum: Everything
Topic: Run Application Shortcut Not Working
Replies: 2
Views: 1614

Run Application Shortcut Not Working

When I go into the release folder and double click the application icon it runs an older version of the program, but when I go into Visual and release it from their it runs the current version. Is there any way to update the release shortcut?
by KillerDonkey
September 12th, 2012, 2:49 pm
Forum: Everything
Topic: Lesson 9 homework inquiry
Replies: 27
Views: 9050

Re: Lesson 9 homework inquiry

Ohkay good i was a little scared there, thanks allot for the help virus :)
by KillerDonkey
September 11th, 2012, 4:54 pm
Forum: Everything
Topic: Lesson 9 homework inquiry
Replies: 27
Views: 9050

Re: Lesson 9 homework inquiry

That's alright you helped allot anyhow I don't know if i would have noticed which variable to change without you telling me over and over that the variables i was using didn't do anything :P does it lag for you too or could that be my computer, please don't say my computer because i just got it lol
by KillerDonkey
September 11th, 2012, 4:08 pm
Forum: Everything
Topic: Lesson 9 homework inquiry
Replies: 27
Views: 9050

Re: Lesson 9 homework inquiry

Alright i think i figured it out, this is what i got now: #include "Game.h" Game::Game( HWND hWnd,const KeyboardServer& kServer ) : gfx ( hWnd ), kbd( kServer ), x( 1 ), y( 1 ), sizex( 798 ), sizey( 598 ), divide( 100 ), r( 200 ) {} void Game::Go() { gfx.BeginFrame(); ComposeFrame(); gfx.EndFrame();...
by KillerDonkey
September 11th, 2012, 4:00 pm
Forum: Everything
Topic: Lesson 9 homework inquiry
Replies: 27
Views: 9050

Re: Lesson 9 homework inquiry

#include "Game.h" Game::Game( HWND hWnd,const KeyboardServer& kServer ) : gfx ( hWnd ), kbd( kServer ), x( 1 ), y( 1 ), sizex( 798 ), sizey( 598 ), r( 200 ) {} void Game::Go() { gfx.BeginFrame(); ComposeFrame(); gfx.EndFrame(); } void Game::ComposeFrame() { loopy = y; while( loopy < y + sizey ) { l...
by KillerDonkey
September 11th, 2012, 3:27 pm
Forum: Everything
Topic: Lesson 9 homework inquiry
Replies: 27
Views: 9050

Re: Lesson 9 homework inquiry

loopx and loopy define where each color pixel goes right? So changing loopx and loopy will change the placement of the pixels. That's all I can deduce because variables x, y and size define the area on the screen that the pixels are made.