
-----------------------------------
Fonzie
Thu Jan 19, 2006 10:09 pm

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.

-----------------------------------
Hikaru79
Fri Jan 20, 2006 12:44 am


-----------------------------------
"Pearls before Swine"? That's a fairly obscure webcomic is it not?

-----------------------------------
blaster009
Fri Jan 20, 2006 11:20 pm


-----------------------------------
Lol...Said the Hobbes avatar...

-----------------------------------
Hikaru79
Sat Jan 21, 2006 12:59 am


-----------------------------------
Lol...Said the Hobbes avatar...

Surely you're not suggesting Calvin and Hobbes is obscure? :P

-----------------------------------
Justin_
Sat Jan 21, 2006 3:25 pm


-----------------------------------
Hey fonzie would it be possible to also see the source?  It would be wonderfully educational :P

-----------------------------------
Justin_
Sun Jan 22, 2006 9:01 am


-----------------------------------
took me forever to beat this game, like 15 tries.  In the end I decided to copy what the computer did to beat me :P

-----------------------------------
codemage
Mon Jan 23, 2006 1:41 pm


-----------------------------------
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...

-----------------------------------
Fonzie
Sat Jan 28, 2006 11:49 am


-----------------------------------
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.

-----------------------------------
Justin_
Sat Jan 28, 2006 12:52 pm


-----------------------------------
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?

-----------------------------------
Fonzie
Thu Feb 02, 2006 10:49 pm


-----------------------------------
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.

-----------------------------------
[Gandalf]
Fri Feb 03, 2006 1:50 am


-----------------------------------
It would be conio.h.  There are many ways to clear the screen, but few that will work on most platforms.

-----------------------------------
wtd
Fri Feb 03, 2006 1:52 am


-----------------------------------
conio.h is indeed Windows specific.

-----------------------------------
Thorgram
Wed Nov 12, 2008 8:17 am

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.

-----------------------------------
[Gandalf]
Wed Nov 12, 2008 2:46 pm

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.
