Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Chess Graphics
Index -> Programming, C++ -> C++ Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
crossley7




PostPosted: Wed Dec 08, 2010 3:52 pm   Post subject: Chess Graphics

Recently I have been working on creating a chess game in Dev C++ using SDL graphics. The game works perfectly fine with my version that i created that just have text input/output and the board displayed with text. But In the process of converting output to SDL my program now freezes without getting the movement.

Any suggestions on how to make it not freeze? Earlier today I made a slight modification that just made it infinitely loop and made the window uncloseable, so that wasn't the solution, and i can't see any problems with the code.

I believe the problem is in the main function but i can't figure it out.



Main.cpp
 Description:
contains the main run code and the legal move detection

Download
 Filename:  Main.cpp
 Filesize:  19.85 KB
 Downloaded:  493 Time(s)


SDL Graphics.h
 Description:
Contains all the SDL functions

Download
 Filename:  SDL Graphics.h
 Filesize:  5.55 KB
 Downloaded:  450 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
crossley7




PostPosted: Thu Dec 09, 2010 9:40 pm   Post subject: RE:Chess Graphics

( have been debugging small variations of this code for the last week, but nothing seems to work. Im thinking I might not be closing something that should be closed or my loop isn't quite what it should be, and is infinite looping without reading input
crossley7




PostPosted: Sun Dec 12, 2010 3:49 pm   Post subject: RE:Chess Graphics

nevermind, i used SDL_WaitEvent and it works now
Display posts from previous:   
   Index -> Programming, C++ -> C++ Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: