So much has changed that I figured I'd post the newest code. I hope that's okay.
Changes:
- better notes
- board is now a dynamic vector as people suggested
- playerType is now a vector
- if...
Type: Posts; User: simpleblue
So much has changed that I figured I'd post the newest code. I hope that's okay.
Changes:
- better notes
- board is now a dynamic vector as people suggested
- playerType is now a vector
- if...
This code works as far as I know:
// main.cpp
#include <iostream>
#include "tictactoe.h"
int main()
{
I'm going to leave the ASCII code for later. A big reason is that it does not interest me much at this point and was not a big priority. I find I need to do exciting things or I get bored fast. I...
I've added what I can so far. I will need to learn a few more things to take advantage of all the suggestions given, but for now this is what I have:
// main.cpp
#include <iostream>
#include...
Thank you all so much for all this feedback! I'm sorry I had taken so long to reply. I didn't think anyone was going to answer this thread and I gave up on it. What a surprise it was to find it!
...
I can understand. It can be a lot of code to look at. I didn't expect anyone to read it all or run it. And I don't want advice on the program, just the programming style. Does it look like it would...
There is no input for this post? :( I don't need anyone to run this program, and I know it's not the most exciting program. I am new to programming and just wanted someone to tell me if my...
// main.cpp
#include <iostream>
#include "tictactoe.h"
int main()
{
TicTacToe Game;
Game.welcome();
This game was originally a Tictactoe game if you couldn't tell already.
I know that there are things I could add to the game such as computer strategy instead of a random move, or perhaps a menu...
Thanks Elysia for telling me this. It's something I need to hear. I just took a look at the beginning parts of this book and it looks like something I can digest. I'm going to try to make programs...
I understand I haven't deleted the pointer so it'll leak... I've read about half of the book 'C++ Primer Plus' and have not yet seem this topic covered. I find that I benefit from programming instead...
Thank you for the quick response.
I haven't learned much about templates or explored the vector area yet... So far I have:
int main()
{
char * cstr;
cstr = new char [100];
I'm making a pacman video game and I would like to display the game board using the printw command from the ncurses library (Linux). I am not able to do this as the printw function only accepts a...