Jump to content
BrainDen.com - Brain Teasers

phil1882

Members
  • Posts

    602
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by phil1882

  1. edit: slight code correction.
  2. here's my code for the tourney, written in python.
  3. CMAD, this is completely unnecessary, i already have the tournament code. your objective is to write a code that plays ROCK PAPER SCISSORS LIZARD SPOCK. note that random functions are not allowed. and you won't be competing against a computer, you'll be competing against other programs. written by other people. so for example someone may write the beat previous move program i have as an example above. so you want to try to write code that will beat as many deterministic ROCK PAPER SCISSORS LIZARD SPOCK players as possible.
  4. I've always thought that the rock paper scissors programming contest hosted by bonanova was one of the funnest. I've tried this contest before without much success here, but i would like to try one more time before giving up. the goal is the following. write a program that plays rock paper scissors lizard spock against another such program. each program will receive as input all it's previous moves, all opponents previous moves, and the round number. the only "strict" rule is no random functions. you are of course allowed to write pseudo random number generators if you really want, but most code submissions should hopefully be deterministic. if you aren't much of a programmer, you may submit to me your general idea and ill try to code it for you. here would be some example programs: def only_rock(my[],op[],i): return ROCK def rotate_moves(my[],op[].i): return i%5 def beat_previous(my[],op[],i): if i == 0: return PAPER else: return (op[i-1]+2)%5 you may of course write as complicated or as simple programs as you desire. may the best coder win!
  5. 1. play 'global thermo nuclear warfare' on nato's computer. 2. teach computer lesson in futility. 3. teach computer life is futile.
  6. well the shortest distance between any two points would be a straight line, so I'll go with that. unless we are trying to find a curve with the minimum friction.
  7. always remember you are unique, just like everyone else. if someone with multiple personalities threatens to commit suicide, would that be a hostage situation? eat right, exercise often, die anyway. the fastest way to double your money is to fold it in half and put it back in your wallet. if you don't know where your going any direction will do. if the energizer bunny attacked someone, would he be charged with battery?
  8. yeah i can't sell my stock because the sell price is so low, nor can i hold it cause the price will go down if i do. i think i resign. my stock trading days are over. thanks for the game guys.
  9. I'll join east! good to see you doing this again y-san.
  10. this is a 4-7 player poker game that i created on the fly. each player will start off with 1000 chips. the game starts with each of the four players getting 5 cards from a standard 52 card deck. on a turn, a player selects 3 cards that follow a progression. 1, 3, 5; 4, 7, 10 etc. the bigger the progression, the more valuable the hand is. if all 3 cards are the same suit. that doubles the size of the progression. so the largest hand is AH,7H,KH worth 2*distance*largest card = 156 points. each player bets on how much he thinks the hand is worth. there are 3 rounds of betting, one where no one knows the three cards that are selected, one where 1 card is revealed, and one where 2 cards are revealed. here's the fun bit. there's a "penalty" for folding, other than losing any bets you've placed. the 3 cards you fold with get placed in the center; face up. any remaining players can use them as part of their 3 card sequence. once the betting is over and a winner declared, the game starts over with each player receiving a new set of 5 cards. the basic betting rules are: you can't bet or raise more than 25 chips, and no more than 3 rounds of raising. who's in?
  11. well, I'm not normally one for putting all eggs in one basket but... 1. Molly sell 2983 CRAK 2. Molly sell 10000 ASRE 3. Molly buy 10000 ASRE (I lose $600, but it's worth a shot) 4. Molly buy 3850 TECN 5. KOP SELL 832 RETR 6. KOP BUY 4420 SERT 7. Phil sell 300 DUCK 281 RETR 100 POAR and buy as much CRAK as money can afford.
  12. man i don't understand why the sell price of POAR is so low. 1. Molly sell 3221 TECN 2. Molly buy 2983 CRAK 3. Phil sell 276 KOOC, Buy 472 CRAK 4. phil sell 150 TECN buy 300 DUCK
  13. phil1882

    Paradox Humor

    the greatest failure is the success never achieved.
  14. well, got no choice, gotta accept my losses. 1 phil sell 866 PENS sell 100 CRAK buy 150 TECN. 2 phil sell 1000 SERT buy 276 KOOC
  15. lol, darn you king! stop blocking my strategies.
  16. i might not be able to find the exact coordinate since 0.01001010 is transcendental, and I'm not quite sure how to map one transcendental number to another, but i can give better and better coordinates depending on your approximation of e/3 and pi/4. what i can guarantee is that there are numbers that are as random as e/3 and pi/4.
  17. you know, looking at the chart i should probably not do my first transaction. a buy price of 6.69 and a sell price of 1.34 doesn't bode well for me. well, I'll leave it.
  18. 1. Molly Sell 3340 TECN 2. Molly Buy 10,000 ASRE 3. Molly Buy 7947 SERT 4. Phil sell 61 CRAK, buy 100 PAOR @ 7.00 a piece. 5. if 10,000 shares to the whole market then: sell 200 shares of PENS 6. Phil sell 993 TECN, Buy 1000 SERT @ 2.50 a peice.
  19. question: is the 10,000 shares available only to us, or the whole market? if the whole market then: sell 200 shares of PENS
  20. 1. Molly Sell 3340 TECN 2. Molly Buy 10,000 ASRE 3. Molly Buy 7947 SERT 4. Phil sell 61 CRAK, buy 100 PAOR @ 7.00 a piece.
  21. hey BMAD, it looks like my shares don't count toward the total stock. did i try to buy after the closing bell? :-) let's see if i can artificially raise the price of a stock. 1) phil1882 sell 700 TECN buy 700 of PENS @ 2.00 a piece.
×
×
  • Create New...