bmramsdell / Ramsdell_CSCI2270_FinalProject

Final Project Repository for CSCI2270
1 stars 2 forks source link

Error messages and driver file question #1

Open abca9657 opened 9 years ago

abca9657 commented 9 years ago

I was a little confused as to which driver file I should use in your repo, there are two that say they are the main driver files. I tried using main.cpp, it seemed like the logical choice.

When I tried to run the program, I got several errors in the Chess.cpp file. The first was on lines 116, 121, 126, 131, 136, 141, 146, and 151. It reads: 'to_string' is not a member of 'std'

The other error is in lines 1026, 1153, 1313, 1540, 2536, 2763, 3082, 3504, 3972, 4247, and 4399. It reads: 'stoi' was not declared in this scope

I always had issues with stoi, but let me know what you suggest for a fix, and I will try it again.

bmramsdell commented 9 years ago

Hello,

Sorry for the confusion about the driver file! I just updated our ReadMe file informing users and contributors that they need to use the main.cpp file and NOT the FinalProject.cpp. So, you were correct in choosing that one. As for your other errors, make sure you are running the project using the C++ 11 compiler. You should be able to change this in your settings up at the top. Thanks for emailing me about your confusion instead of tanking our project in your evaluation! If you have any other questions, don't hesitate to ask!

Cheers, Blaine and Zach

On Thu, Apr 30, 2015 at 1:28 PM, abca9657 notifications@github.com wrote:

I was a little confused as to which driver file I should use in your repo, there are two that say they are the main driver files. I tried using main.cpp, it seemed like the logical choice.

When I tried to run the program, I got several errors in the Chess.cpp file. The first was on lines 116, 121, 126, 131, 136, 141, 146, and 151. It reads: 'to_string' is not a member of 'std'

The other error is in lines 1026, 1153, 1313, 1540, 2536, 2763, 3082, 3504, 3972, 4247, and 4399. It reads: 'stoi' was not declared in this scope

I always had issues with stoi, but let me know what you suggest for a fix, and I will try it again.

— Reply to this email directly or view it on GitHub https://github.com/bmramsdell/Ramsdell_CSCI2270_FinalProject/issues/1.

Blaine Ramsdell University of Colorado | Class of 2016 "Run for your life!" 321.279.1251

abca9657 commented 9 years ago

Ok, I ran a few quick tests and found a few bugs that you may or may not already know about. It may be a good idea to post your known bugs on your readme.

The game works very well as long as the user follows directions. The game did call my Queen (on the Q side) a rook, just a heads up. If I say to move something off the board, I get a seg fault. Also, when I'm prompted to press a button for a direction (ie 8 for up), if I press something other than a number I get a core dump along with this message: image

So make sure you include those bugs in your readme section. Other than that it worked pretty fine for my tests. Fun game guys!

bmramsdell commented 9 years ago

Thanks for giving us a heads up about these issues! We had a feeling that we would run into issues with incorrect user input and spaces off of the board, but we had no idea about the Queen error. We will update the read me file now to include these bugs.