Author |
Message |
Fonzie
|
Posted: Thu Jan 19, 2006 10:09 pm Post subject: Pearls Before Swine - Final Project |
|
|
alright guys, here we are, the fruits of my labour. My final project, "Pearls Before Swine". It's a fairly simple game so don't be scared away if you've never played it before.
I'm a little upset that it's not quite as impressive as my last year's final (link: http://compsci.ca/v2/viewtopic.php?t=7575), but I'll chock that up to the fact that I knew turing for two years and c++ for one. Anyway, enjoy guys and feedback is always appreciated.
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
pearlfc.zip |
Filesize: |
45.61 KB |
Downloaded: |
654 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Hikaru79
|
Posted: Fri Jan 20, 2006 12:44 am Post subject: (No subject) |
|
|
"Pearls before Swine"? That's a fairly obscure webcomic is it not?
|
|
|
|
|
![](images/spacer.gif) |
blaster009
|
Posted: Fri Jan 20, 2006 11:20 pm Post subject: (No subject) |
|
|
Lol...Said the Hobbes avatar...
|
|
|
|
|
![](images/spacer.gif) |
Hikaru79
|
Posted: Sat Jan 21, 2006 12:59 am Post subject: (No subject) |
|
|
blaster009 wrote: Lol...Said the Hobbes avatar...
Surely you're not suggesting Calvin and Hobbes is obscure?
|
|
|
|
|
![](images/spacer.gif) |
Justin_
|
Posted: Sat Jan 21, 2006 3:25 pm Post subject: (No subject) |
|
|
Hey fonzie would it be possible to also see the source? It would be wonderfully educational
|
|
|
|
|
![](images/spacer.gif) |
Justin_
|
Posted: Sun Jan 22, 2006 9:01 am Post subject: (No subject) |
|
|
took me forever to beat this game, like 15 tries. In the end I decided to copy what the computer did to beat me
|
|
|
|
|
![](images/spacer.gif) |
codemage
![](http://usera.imagecave.com/codemage/codemage-small.gif)
|
Posted: Mon Jan 23, 2006 1:41 pm Post subject: (No subject) |
|
|
Thomas Hobbes is pretty obscure nowdays... I don't think the same can be argued for Hobbes the tiger.
Although Bill Watterson has definitely faded into complete obscurity (and thus single-handedly ended the golden age of comics).
...but I digress...
|
|
|
|
|
![](images/spacer.gif) |
Fonzie
|
Posted: Sat Jan 28, 2006 11:49 am Post subject: (No subject) |
|
|
well I assure you, this game has nothing to do with any webcomic. I've actually never heard of "pearls before swine" the comic. Just a coincidence.
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Justin_
|
Posted: Sat Jan 28, 2006 12:52 pm Post subject: (No subject) |
|
|
Fonzie I'm curious how you made a white background that is clearable, I'm new to C++ so could you show some code that allowed you to do that? I'm convinced you are working in console right?
|
|
|
|
|
![](images/spacer.gif) |
Fonzie
|
Posted: Thu Feb 02, 2006 10:49 pm Post subject: (No subject) |
|
|
I just used the clear screen function. That's not in iostream though, it's one of the older libraries. Conio or maybe stdio....one of the odler ones.
|
|
|
|
|
![](images/spacer.gif) |
[Gandalf]
![](http://compsci.ca/v3/uploads/user_avatars/189297994e4c716fec7f1.png)
|
Posted: Fri Feb 03, 2006 1:50 am Post subject: (No subject) |
|
|
It would be conio.h. There are many ways to clear the screen, but few that will work on most platforms.
|
|
|
|
|
![](images/spacer.gif) |
wtd
|
Posted: Fri Feb 03, 2006 1:52 am Post subject: (No subject) |
|
|
conio.h is indeed Windows specific.
|
|
|
|
|
![](images/spacer.gif) |
Thorgram
![](http://compsci.ca/v3/uploads/user_avatars/13884424724878f740616e3.jpg)
|
Posted: Wed Nov 12, 2008 8:17 am Post subject: Re: Pearls Before Swine - Final Project |
|
|
A bit hard to beat, but a good game and challenge. How did you clear the screen after every turn? I am new to C++ and I only get the black screen where the information scrolls down.
|
|
|
|
|
![](images/spacer.gif) |
[Gandalf]
![](http://compsci.ca/v3/uploads/user_avatars/189297994e4c716fec7f1.png)
|
Posted: Wed Nov 12, 2008 2:46 pm Post subject: RE:Pearls Before Swine - Final Project |
|
|
Now, to answer that, all you'd have to do is read the four posts above yours. Not only that, but you'd have avoided necro-posting in this 2+ year old topic. Please read the rules and the entire topic before posting.
|
|
|
|
|
![](images/spacer.gif) |
|