703 karma · joined December 6, 2010
Funny thing is that I never play them myself after I've finished them. The interesting part for me is creating the computer player, and seeing if I can make him win more than the human players, I have some stats in Google Analytics that can show me that. Since the computer plays like I would play it's kind of like I'm playing against all the players :)
When I'm testing I usually let the computer just play against itself, add ?autoplay to any of the game urls and when you press Deal you'll see four computer players playing against each other...
I have thought about changing it all to one domain, and setting up some 301 redirects, but I'm just afraid to mess up my google rankings. For the solitaire game I re-use a domain, e.g I have http://www.solitaire-cardgame.com for Klondike solitaire (or classic solitaire), and then I have http://www.solitaire-cardgame.com/freecell for Free Cell solitaire.
What I think I'm doing right:
* Simple to start. As soon as you enter the page you see the table, you just need to press Deal and you've started. No "enter your name", no choosing options before starting, no nag ads.
* Single page sites. The rules for the games are on the landing page, which means it has more content and is likely to be ranked higher by Google.
* Keep it simple. As a programmer I had the urge to create high scores, multiplayer, logins, track results etc, but at the end of the day most people just want to spend 10 minutes playing, and leaving out those things also means it's maintenance free, and frictionless to get started.
"Hi there! Looks like you're enjoying the game. That's great! We'd love it if you could help us out by sharing it with your friends:"
And then has the usual facebook/twitter/etc buttons. There is also a discreet "Share with your friends" link that makes the banner pop down, I like that more than having all those ugly buttons visible the whole time. I wait until you're into your second game because I figure by that point you must like the game, otherwise you'd have left, and then it's maybe more likely that you'll help me promote it.
All my online card games (3 of them) also have a "Also try our other games: X and Y" links, which drive a fair bit of traffic between them.
I would have taken 200$ for an actual ad on that page, but pretending that I like something personally for money is not something I want to do.
But when you write Python code, do you then end every line with a ; ? To make it more readable for yourself?
There, you've just fixed all the cases that are likely to go wrong.
The capital letter in English is a strong visual indicator that a new sentence is starting. In code I think the line break does that more than well enough, no need for the ;
1. Prefix lines that start with punctuation, specifically [(-+/ with a ;. Then omit them everywhere else. Lines that start with punctuation are a tiny subset of all lines generally.
2. Postfix every line with a ;, "just in case"
I can't see how nr. 1 is harder. And in case 2 you don't actually put ; at the end of every line, you don't put them after {} blocks for example, so it's not like it's somehow easier to remember.
"Because we're used to doing it that way" is a reason I guess, but not a great one in my opinion.
where it wil think i( is a function call.
Best article I've read on the subject: http://inimino.org/~inimino/blog/javascript_semicolons
"When you have a single statement, that stretches out over more than one line, but those lines are legal statements on their own, then it won't work like you want it to"
I would guess that the number of statements that stretch out over many lines are a very small part of the overall number of statements for most code.
But it just seems like most developers think that javascript might insert semicolons all over the place. Which it won't, the rules are clear once you learn them.
The biggest referer is Facebook, with Google coming in second. Ive also created all of them as Chrome Apps in the Chrome Web Store so people can "install" them there. (basically just a big bookmark on your New Tab page in Chrome)
Am getting my first payout from Google Adsense this month, about 120 $. Which isn't much, but they're pure client side games, require no maintenance or anything so I'll just keep getting a small check every month :)
1. We had a support portal at work which I had to check regularly during the day. I wrote a small program that monitors the relevant page and pops up a taskbar notification when something new arrives. Used the opportunity to learn about taskbar notifications and a little WPF.
2. I sometimes get database backups from customers and have to restore them on my machine, which means opening SQL Management studio, clicking and right clicking a bunch of things. Then I need to add myself as user, change a couple of settings before I can use the database for anything. I wrote a small utility so I can right click on any .bak file in explorer, choose Restore database and update the relevant tables so the database is ready to use right away with the connection string on the clipboard. Also used it as an opportunity to learn about windows 7 taskbar progress bars.
Basically I like doing small projects, but I never finish them unless they really do something. So, automating stuff I do makes much more sense than learning by following a tutorial that builds something useless.