- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Fractional math? I like. (First post?)
Admin
I hope it's not the only finalist with asm code embeded, I find it sooooo relaxing :-)
Admin
Assembler code AND XML in the same application????... you are the incarnation of Lucifer.
Admin
Love the comment
Admin
Not only that, it's SSE2 assembler code!!!
Admin
Admin
Hacking a railroad tycoon file for positive income? I found an easier way, make too much money and the game will do it for you, I couldn't spend money fast enough. Here's how, you want single point runs between cities, separate trains for each run, small number of cars to keep speed up and only passenger and mail cars. As the trains improve you can up the number of cars. Also you can add multi city freight trains to pick up that extra cash once the trains improve enough. I took over most of Europe this way but hit every limit in the game, no more trains, train stations, or track; and the money would overflow so every other yearly report would show me bankrupt only to have a killer year soon after.
Admin
erm, the Ti-85 already had a decimal to fraction converter built in... I guess his programmer friend would have done well in our contest.
Admin
I was thinking that too, but then I remembered that it doesn't work for really ugly decimals. Maybe his friend wanted to convert the really ugly ones, too?
(Oooh, captcha: kungfu)
Admin
This monster does, however, tick all the boxes for enterprisey software... [x] Optimized code, you don't want to waste cycles (aka money) on small equations like these [x] XML (You do need droolproof paper to present the specs tho) [x] Solution for problems that can arise are bound to be worth gold when you actually need them
Nice entry
Admin
Unlike finalists #5 and #6, this is an excellent entry. It sticks far more properly to the rules and has a really interesting mix of demented optimization (SSE2 assembly!) and absurd over-complication.
But you can tell the author isn't a true XML wizzard. There are depths that can be plunged there that are truly not funny...
Admin
My strategy was similar to that one. It was all a question of what you were allowed to do when you were in the red. First I'd sell off a bunch of bonds, so that I would have more than enough money to lay track everywhere on the map. Once all the track I could lay was done (hit zero dollars), I'd repay all the bonds. To drive myself even futher into debt, I would finally buy all my stations and trains. Then I would pretty much follow the same strategy you had :) Also, for some reason I never overflowed from positive back into negative, only negative into positive... maybe that was a result of the save game hack?
PS: to those curious about the horrendous QBasic text game I made, I'll post it when I get home. I wasn't able to respond to Alex's email in time.
Admin
Oh, and just so you guys know how much of a WTF SSE2 is, here is a little clue: PMULUDQ is short for PackedMultiplyUnsignedDoubleWordToQuadWord. So I had to make sure that everything was unsigned first. That single SSE2 instruction changed the architecture of the whole program!
Admin
I guess I'm not the only one who calls his computer HAL9000... I thought that was so original...
Admin
I think it is WTFey only because of the implementation. Fractions are IMHO a valid way of dealing with numbers and, for instance, calc uses them for arbitrary precission:
http://www.isthe.com/chongo/tech/comp/calc/calc-whatis.html
Admin
This is the first one I've seen that I'd vote for.
Well done.
Admin
If you are going to make an idiotic post, just so you can say "first" at least say it correctly
1513 / 89 post
Admin
If you are going to do XML for these things, you should really use IDREFs! I mean, the values and operators can all be referred using IDREFs for added insanity.
Admin
Here are the old QBASIC programs referred to in the article: http://freedombeer.servehttp.com/downloads.php Some of this code I wrote is shockingly bad. This was before I ever heard the phrase "GOTO considered harmful" ;)
Admin
hahahah the good old days of programming
PLAY "l12cp30ccl5a+l12cp30ccl5gl12gfefefgagaa+agfl5g"
Admin
Pasotaman's comment left me with a few minutes of newfound wonder and respect for Windows Calculator until I realized he was talking about the Linux calculator.
Admin
Admin
I had no idea that C++ allowed inline assembly like that. I've never seen it mentioned in any book, nor was it ever mentioned by any of my professors. Of course, I believe there is a very good reason for that.
Admin
As does Common Lisp, for some reason. It's highly inconvenient; certain calculations may result in a float or a fraction depending on the phase of the moon, and this may not be constant across implementations, and so on. Easily fixed, but a bit jarring when you first see it.
Indeed there is. As you can see above. :)
I'm pretty certain it's possible to have inline Pascal with GCC, as well, but it's probably not advisable.
Admin
I'm not totally sure if this is a bug or not, but reading through the assembly and noticing the JMP instructions...
What if both fractions are negative?
Admin
Not a problem since you can't make a number negative through the GUI ;)
Admin
And I thought there was a cheat code to give you millions of dollars in Railroad Tycoon.
In Railroad Tycoon 2, I found a - non-cheating - way to utterly ruin some of the other Tycoons. This works only with those opponents that buy stock on margin, and you must already have shitloads of money yourself. But if this is the case, you can make them lose all their money and stocks, until his stocks are 0 (from forced sales, think of the dreaded broker's call) and his cash negative, and he has no salary. By the rules of RT2 this means he's completely out of the game and probably would become a beggar in real life.
It's funny because it's cruel.
Admin
:D Oh man I gotta see if that works in RT3. I also remember in RT2 to generate a lot of personal wealth you could do a pump-and-dump Enron style. (For those not familiar with evil corporate schemes, a company borrows money to buy back shares, and when the stock hits its peak (runs out of debt or can't hide it anymore), the insiders sell the stock and the company declares bankruptcy). You can then use the personal wealth to start a new company with a larger number of starting funds. They stopped that in RT3 by preventing bankruptcy before you have 2 years of no profits.