Coder Profile - Show off your skills, get a coder profile.
 
 
 
The Author
Cinjection
Oleksi Derkatch
Send A Message
Rating
8.00
out of 10
( 2 Ratings )
Please login to rate source codes.

Click here to register a free account with us.
General Details
C++
Posted 4.16 Years Ago
657 Views
Received 2 Ratings
More Codes By This Author
Wordsearch generator.
Linked List in C#
Julia Set
Mandelbrot Set Generator
MD5 Brute-Forcer
Articles By This Author
Intorduction to memoizati...
Strings in C++
Vectors in C++
Use Cases
[C++] Pointers and their...

Generic Game: Tic-Tac-Toe and High Card


Description
This is part of a larger project I'm making. It'll be a pet interaction program with games for the "pets" and their owners. These classes provide this support. Game is an abstract data type, and the other two classes subclass Game and specialize it. I also threw in a Card class for completeness. I suppose that it serves as a good semi-advanced example of OOP in C++.

I never thought that I could make a game of tic-tac-toe in a way that it contained an "abstract pure virtual method". Eck!
Technical
Compiles with gcc, although it should work with MSVC as well.
Source Code
Comments
Please login to post comments.
 
Coding_Guy     Posted 4.8 Years Ago
 
 
Yeah man, I can definitely see your great effort there
 
Cinjection     Posted 4.16 Years Ago
 
 
@alexxe: Hmm. Make sure that you have everything in the same folder. There should be
a total of 8 files in that folder.

@Uranium-239: I will be adding a GUI for the implementation later. These classes
purposely disregard implementation, to allow for more control. For example, when
testing these classes, I used a simple console based implementation. When I
incorporate it into the larger project, I will provide a GUI based implementation.
 
alexxe     Posted 4.16 Years Ago
 
 
still have 1 error .. >> cant find game.hpp
it's look like haven define properly ?
 
Uranium-239     Posted 4.16 Years Ago
 
 
Nice, try and use some GUI library though to up the visuals especially if you are
making games.
 
Cinjection     Posted 4.16 Years Ago
 
 
What do you mean? This code is complete, there's just not game implementation,
because I'll be writing the implementation inside the pet interface class.


And Thanks :)
 
VBAssassin     Posted 4.16 Years Ago
 
 
Wahoo thats cool! Really need more games here :-) great worrk!

Plan on updating it over time? Or is that like one of those one of challenge kind
of codes ;-)

Kind regards,
Scott
Page 1 of 1
More "C++" Source Codes By This Author
Recently Posted "C++" Source Codes
Recently Rated "C++" Source Codes
 
 
Latest News About Coder Profile
Coder Profile Poll
Which sounds better on your coder profiles, and makes more sense to you (think twitter, facebook, etc)?

Followers / Following
Fans / Following
Fans / Fan Of


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
3.49 Years Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2012, Scott Thompson, All Rights Reserved