I made a blackjack game in C++. You can click the link to download the game (probably only works on windows). You can see the source code after the jump.
Grid Game: Latest C++ Opus
Here is my latest C++ masterpiece after the jump. Move your guy (U) to get the treasure (T) and avoid the monsters (Q and M).
This is some seriously hi-tech shizzle.
(Oh and I stole the clear screen function from the interweb ^_^. I couldn’t come up with that on my own!)
Continue reading →
Deal cards
Here is some more C++, I am just posting it here to dump it somewhere to show it to someone with 1337 hacks. Please disregard if this sort of thing bores or confuses you. ^_^
C++
I have been playing around with C++ the last couple days, just because I am a big computer dork and to see what I can remember from back in high school computer science.
Here is my latest gem.
#include
#include
using namespace std;
float num1(0), num2 (0), answer (0);
string operate;
int main ()
{
cout << "Welcome to the calculator" << endl;
cout << "Enter the first number" << endl;
cin >> num1;
cout << endl << "Enter the second number." << endl;
cin >> num2;
cout << endl << "What operation would you like to perform? (+ - x /)" << endl;
cin >> operate;
if (operate == "x") {
answer=num1*num2;
cout << answer << endl << "You have multiplied " << num1 << " and " << num2 << ".";
}
else if (operate == "+") {
answer=num1+num2;
cout << answer << endl << "You have added " << num1 << " and " << num2 << ".";
}
else if (operate == "-") {
answer=num1-num2;
cout << answer << endl << "You have subtracted " << num2 << " from " << num1 << ".";
}
else if (operate == "/") {
answer=num1/num2;
cout << answer << endl << "You have divided " << num2 << " into " << num1 << ".";
}
else {
cout << "I'm sorry, you didn't enter a valid operation to perform" << endl;
}
}
Take that MS Calculator!
Map of Almaty, Kazakhstan
My friend here in Denver has a company called Umapper (www.umapper.com), which lets you make custom maps and applications. So i was testing it out, and made a map of Almaty, Kazakhstan and wanted to post it here on the website.
Having lived and visited several times in Almaty, hopefully I labeled some places on this map that will be useful to anyone who stumbles upon it…because it is essential that people in Almaty can find the Arasan Bathhouse! (which I labeled on the map).
On the TX
On the train. All the 8:23 regulars are here. Strangers on a commuter train.
Yesterday was crazy busy at work. I don’t fully understand the seasonal ups and downs of the scientific editing business, but right now, we are swamped. I really need to speed up my editing, but of course the trick is to do that while maintaining accuracy.
Yesterday, I worked from 9:30 am to 9:30 pm, bookended by an hour on the train each way — on thanksgiving. Lucky me (but Monday was a holiday, so I can’t complain too much).
It’s little late, but I wonder if there is somewhere in this country where I can score some pumpkin pie?
Wave Test
After the jump, I have a Google wave embedded.
WH Health Bill
It looks like the White House might draft its own health care bill….which I think could be a great strategy. Congress has done 85% of the bill, and now Obama can take control of the debate, while also shielding himself from criticism by saying that he is taking the best parts from the various congressional plans that have already been drafted. And anything to speed up the sausage-making process would be a good thing. (Damn you Gang of Six!)
Russian Translation
In case anyone wants some great Russian and English translation services, you should check out our new company – Mile High Russian! We’ll translate anything! We also offer Russian tutoring!







