Tuesday, May 18, 2010

mysql> select * from games;
+--------+-------+--------+-----------+------------+-------+
| gameid | redid | blueid | redpoints | bluepoints | score |
+--------+-------+--------+-----------+------------+-------+
| 1 | 3 | 1 | 91 | 80 | 76 |
+--------+-------+--------+-----------+------------+-------+

The above means that game 1 was played by user 3 and user 1, and user 3 scored 91 points, and user 1 scored 80 points, and the last set was 7 to 6.

Translated this means the computer and I (blue and red, respectively) played the first game entered in the database, that I scored 91 points, and the computer scored 80 points, and that I won the last set 7 to 6.

This "last set" score at the end has been fixed to record a six digit code that is the set scores for all three sets (or four digit code if it was a two set match). I know, I may still need to explain how the game works, but that will come soon on an info page at psychicballgame.com. The score format is RBRBRB where the first two are the number of games in the first set for red and blue ... I digress. You don't need to know this anyways, because I'm going to parse it and turn it into pretty reports anyways.

So, please visit http://psychicball.com/LogIn.html and log in as "Guest" with password "password" to record some data for the user Guest. You will be playing against the user Computer, for now. You are Red, for score keeping purposes.

Please try to make red win. This will go a little way towards collecting useful data, as I am trying to show that by trying to make one side win, it affects the probability distribution of the random numbers generated. Again, I'm just using PHPs built in rand(0,1) function.

Enjoy, and look for a sign up page coming soon!

Sunday, May 16, 2010

Demo Up

Please visit http://psychicballgame.com/ and demo the game. Remember, focus your psychic power on getting the color of your choice to appear.

I just redid the calculation for 10,000 random events for determining one point, as the game is being played now, and if you can affect the probability from 50% to 50.5%, your expected value is 5050, which means you expect to win every point, and your stadard deviation is almost exactly 50. This meas you should expect to win 84.13% of the points.

For any math nerds, this is: for the number of coin flips won out of 10,000, X, with the probability of a coin flip being 50.5%, the probability of winning a point in Psychic Ball is

P[X>5000]=P[Z>1]=.8413

based on the area under the curve of the normal curve looked up in the Z-table of any given statistics book.

So, at some point, once I get user sign up and log in pages up, and a version that records your game data, I will make a conversion chart that will let you look up your measured affect on the random events. In this example, a win rate of 84.13% of the points gets converted into winning 50.5% of the random events I refer to as coin flips (actually the function rand(0,1) in php, zero bein for blue, one being for red).

So, just to be clear, those are the three things that are in line to go up on http://psychicballgame.com/. Again, they are
  • User Sign Up Page
  • User Log in Page
  • Psychic Ball with Database Records

Hope you enjoy it so far!

Thursday, May 13, 2010

Game Mechanics

So, you're a non believer, huh? Well, here is one study that suggests there might be some reality to the existence of psychokinesis (PK) by Princeton Engineering Anomalies research project of Princeton University (1997).

There is that, and then against it is that episode of Myth Busters that proved it is a myth. No, just kidding, I don't remember what kind of psychic ability Myth Busters was trying to disprove, but still, this project will be its own little study into the apparent phenomenon.

I ran the numbers real quick, and if you're just 51% likely to win a coin flip (random generation of a 1 or a 0), then you probability of winning a point, or winning at least 501 out of 1000 coin flips, becomes over 70% (about 71.6%). That makes a big difference. So, the probability of winning a game goes up even higher, and a set even higher, and a match even higher (I'm too lazy to do the math right now, I have a game to make!)

Ok, if someone wants to do the math, that is another way to contribute. I would very much appreciate it.

So, if someone does have an advantage, it should become apparent. I hypothesize that people will be able to beat the computer consistently. This alone will be a great achievement if it is true. Further, I hypothesize that some players will be better at this than others, and will be able to consistently win against other players. Lastly, if I could show that this is a learnable skill, that players actually get better at this game the more they play, that would blow my mind. I would love that so much.

In order to track this last part, it will be vital to make sure I date stamp all game data recorded. So, right now I'm just getting the database and game scripts set up. I hope I can get something done before someone needs my help doing statistics homework ;).

Until next time!

Tuesday, May 11, 2010

Psychic Ball

Welcome to the Psychic Ball blog. Psychic Ball is currently under development, but will be hosted at http://www.psychicballgame.com/. This week so far, I've set up the web server, created some proof of concept graphics, and got my domain name up and running. You can see the domain linked up to my web server at the link above. Woooh. *wave hands*



We're looking for contributors from many disciplines. We need programmers, writers, character designers, story writers, game layout and graphic designers. In addition I still want to talk to someone (I'm thinking any psychology student who's done a study) about relevant data to track, what kind of p-value is a good target, stuff like that. Although I can always set it up later, I know I need to decide before hand how much data I'm going to look at.



The reason I'm interested in tracking data so much is, I've seen multiple references which I'd like to site, though I don't know them off hand, (I think there are some in Amit Gaswami's The Self Aware Universe). So, I guess I'll need to offer a one player/one team mode, that you play by yourself, or with multiple people on the same team, and track the results of those random number generators. Then in the versus mode, which is the game I'm really interested, I want to track data to try to show that some players definitely have a stronger ability than other. Unfortunately there is no way to tell whether it is because they always play with two psychics focusing on them winning at a time, or what have you, but it would still be interesting.



The way I want to award points is one thousand random ones and zeros generated. If it is in your favor (more ones for red team, more zeros for blue team) then you get the point. Get four points by two to win a game, and six games by two to win a set. Two out of three sets wins a match. (Sound familiar? It should if you know how to play tennis.)



If a player can consistently get even about .1% in their favor, they would be able to sweep the game, getting almost every point. Particularly in a one team game, when they don't have psychic opposition, if I understand what I have read about some experiments done, and their repeatability, a player should be able to consistently beat the computer. Any player who tries. So, I guess a one player game would be a good place to start experimentation, because it is closer to the reference point I'm coming from.



I guess only time will tell if this is going to be a fun game that also helps people develop their psychic abilities or not. I think I'm going to have fun playing, and that's really the most important thing. I'm so excited to play. Let's see how fast I can get a prototype one player proof of concept up and running, shall we? Oh, and anyone who wants to contribute, comment and let me know how to contact you. I'd love all the help I can get.