Jump to content
BrainDen.com - Brain Teasers

unreality

Members
  • Posts

    6378
  • Joined

  • Last visited

Everything posted by unreality

  1. edit - else if (algoNum==52) // SFRK! { if (i<3) return i; return (b[i-1]+i)%3; } aanyway yeah...
  2. A user named SFRK submitted an algo, of which the translated java code is (as briefly as I could make it haha) if (i<3) return i; return (b[i-1] + (i-2)*(i-1)/2)%3; I'm not sure if darthnoob, jazzship or izzy are going to submit for the official T3, but we're still open for business if they decide to
  3. unreality

    As someone who has done my share of stupid things too, I think it's probably laziness too. We've evolved to conserve energy It also depends what you mean by stupid. Sometimes you might call an activity stupid (such as certain drugs or smoking or drinking, what have you) but maybe you just don't understand the why, the how, the what of the situation. You see college kids hungover the next day and think they're stupid, well maybe they are, maybe they aren't. That kind of thing is a personal decision IMO. The same case-by-case justification can extend to other situations but not as often - for example, maybe the guy swerving out into the lane has a pregnant woman inside giving birth, or is being chased by government agents who think he's responsible for a political assassination, or he needs to deliver a pizza really fast (or all three - what a movie that would be!). Now 99% of the cases are going to be just that: pure stupidity and laziness, maybe some peer pressure. I'm thinking mainly of driving here, but there are other stupid things that are less dangerous... like pushing a door instead of pulling or vice versa. etc. Sometimes a person is really distracted or stressed, etc. There are a lot of factors
  4. unreality

    one thing that often comes up in morality is society vs. the individual. For example, a case where a doctor makes (through long hours of ingenuity and hard work) a fantastic medicine that can cure some fatal condition. Should he be able to sell it? Or should he give it away for free?
  5. unreality

    have you written the overarching program(s) yet? I'd like to see more of how they work before thinking about designing my own
  6. which algorithms? Most of them I did not write - of the 8 in T3 competition, I only wrote mine and (technically jarze's but way earlier) and Mr Apple's: else if (algoNum==41) //MrApple! { String convert = "Rock Paper Scissors"; char[] car = convert.toCharArray(); return ((car[i/8] >>> (7 - (i % 8))) % 2); } He just wanted text converted from ASCII into binary and then taken from as 0s and 1s to use as ROCK/PAPER... java uses Unicode, not ASCII, so I had to convert that and then use bitshifts and modulus to extract the binary 0/1 out of it... it was actually pretty tough but it was mostly math. As for any of the other algos, you'll have to ask the ones that made them Final Results: T2 defeator vs phillip!: T2 defeator wins!!! T2 defeator vs plasmid!: plasmid! wins!!! T2 defeator vs unreality!: T2 defeator wins!!! T2 defeator vs dawh!: T2 defeator wins!!! T2 defeator vs MrApple!: T2 defeator wins!!! T2 defeator vs Framm!: T2 defeator wins!!! T2 defeator vs SomeGuy!: T2 defeator wins!!! T2 defeator vs jarze!: T2 defeator wins!!! phillip! vs plasmid!: plasmid! wins!!! phillip! vs unreality!: unreality! wins!!! phillip! vs dawh!: dawh! wins!!! phillip! vs MrApple!: phillip! wins!!! phillip! vs Framm!: phillip! wins!!! phillip! vs SomeGuy!: phillip! wins!!! phillip! vs jarze!: jarze! wins!!! plasmid! vs unreality!: plasmid! wins!!! plasmid! vs dawh!: plasmid! wins!!! plasmid! vs MrApple!: plasmid! wins!!! plasmid! vs Framm!: plasmid! wins!!! plasmid! vs SomeGuy!: plasmid! wins!!! plasmid! vs jarze!: plasmid! wins!!! unreality! vs dawh!: unreality! wins!!! unreality! vs MrApple!: unreality! wins!!! unreality! vs Framm!: unreality! wins!!! unreality! vs SomeGuy!: unreality! wins!!! unreality! vs jarze!: unreality! wins!!! dawh! vs MrApple!: dawh! wins!!! dawh! vs Framm!: dawh! wins!!! dawh! vs SomeGuy!: dawh! wins!!! dawh! vs jarze!: dawh! wins!!! MrApple! vs Framm!: Framm! wins!!! MrApple! vs SomeGuy!: MrApple! wins!!! MrApple! vs jarze!: jarze! wins!!! Framm! vs SomeGuy!: Framm! wins!!! Framm! vs jarze!: Framm! wins!!! SomeGuy! vs jarze!: It was a tie!!! Win Count: T2 defeator: 7.0 phillip!: 3.0 plasmid!: 8.0 unreality!: 6.0 dawh!: 5.0 MrApple!: 1.0 Framm!: 3.0 SomeGuy!: 0.5 jarze!: 2.5 Type y for analysis y [Algos: 9] [Games: 36] [Average Score: 4.0] [Sdev: 2.483] [MAD: 2.222] From Greatest to Least: plasmid!: 8.0 [505 wins, 152 ties, 143 losses] 11.557 T2 defeator: 7.0 [492 wins, 155 ties, 153 losses] 10.547 unreality!: 6.0 [471 wins, 147 ties, 182 losses] 10.013 dawh!: 5.0 [307 wins, 203 ties, 290 losses] 7.351 phillip!: 3.0 [229 wins, 251 ties, 320 losses] 4.114 Framm!: 3.0 [200 wins, 236 ties, 364 losses] 2.991 jarze!: 2.5 [140 wins, 249 ties, 411 losses] 3.021 MrApple!: 1.0 [191 wins, 273 ties, 336 losses] 1.380 SomeGuy!: 0.5 [123 wins, 218 ties, 459 losses] 0.000 The biggest blowout game(s) was(were): T2 defeator won 100 games and SomeGuy! won 0 ~ there were 0 ties Type y to play again n Thanks for playing!
  7. unreality

    so our maze-navigators are scored based on the number of squares they traveled to get to the end? Are they informed what the opening square is (or opening AND closing squares?) Can they access any square in the array and see if it's X or space?
  8. unreality

    I see (though there's no need to divide by 3 because that divides out but either way it works). And regarding the array of strings, will index 0 be the top row, the bottom row, the left column or the right column? (then i assume 1-49 will follow from there toward the opposite side of the square) I don't think this is a good idea. How sensitive does your computer go? Can it measure by the milliseconds accurately (often given in 1000s of nanoseconds instead of in milliseconds)? Even so, this is not accurate at all. Something that interests me is optimizing functions and it's really quite variable. It depends on the circumstances and also some IDEs/compilers have some memory-managing optimizations that let them improve with time. Other things that are open and even the current battery power of your computer (if you use a laptop) can affect the timing. Another reason this could be a bad idea is because I, and probably many others, are not familar with python (though a few weeks ago I downloaded it, I haven't gotten to it yet) and so we may write our programs in java/c/etc, but when you convert our programs into python, the speed will depend on your optimization of our code. Even if you translate it so that the operations are the same, we may do it a different way because, say, C++ is more efficient at it one way, whereas we may not know that Python in fact is more efficient another way. You don't have to change it, I'm just pointing out some of the problems with using runtime seconds. Switching to using the number of moves taken instead of the number of seconds has the effect that, although it gives a better picture of how well the navigator algorithm can find the solution, it makes that aspect less important and the maze generator more important. So it depends what you want
  9. I know my code doesn't have all the nice comments that plasmid's has, so here is the same code with much more comments added: else if (algoNum==36) //unreality! { if (i==0) return SCISSORS; /* people started with ROCK in T1 so most people in T2 started with PAPER, this is to defeat those that start with PAPER or at least tie those who start with SCISSORS */ if (i==1) return (b[0]+2)%3; /* if they expect me to beat what they played first, I'll beat THAT. This move will only lose if they play the same move twice in a row */ if (i==2) return (b[1]+2)%3; /* same reasoning */ // now for my algorithm ArrayList<Integer> vooma = new ArrayList<Integer>(50); // create a list to store what you have done recently ArrayList<Integer> voomb = new ArrayList<Integer>(50); // create a list to store what the opponent has done recently ArrayList<Integer> checka = new ArrayList<Integer>(50); // create a list to store sets of moves of equal size to vooma, from earlier in the game than vooma, to be checked against vooma ArrayList<Integer> checkb = new ArrayList<Integer>(50); // create a list to store sets of moves of equal size to voomb, from earlier in the game than voomb, to be checked against voomb for (int goback = i / 2; goback > 0; goback--) // start with as large a sequence as possible to try to find an earlier match, but get smaller and smaller until a match is found earlier in the program { vooma.clear(); voomb.clear(); // clear both lists for (int kk=i-goback; kk<i; kk++) { vooma.add(a[kk]); voomb.add(b[kk]); } // fill both lists with your recent moves for (int startcheck=0; startcheck< i-goback-1; startcheck++) // try a bunch of possible "checka" and "checkb" lists until/ifever a match is found { checka.clear(); checkb.clear(); // do that by clearing the lists and then for (int jj=startcheck; jj<startcheck+goback; jj++) { checka.add(a[jj]); checkb.add(b[jj]); } // filling the lists if (vooma.equals(checka) && voomb.equals(checkb)) return ((b[startcheck+goback]+1)%3); // if the lists are equal, play what beats what b is predicted to play next } } // nothing was found to match, so play my last move that won for (int zz=i-1; zz>0; zz--) // go from i-1 to round 1 (don't count i=0) backwards and return whatever move has won me a round most recently { if ((3 + a[zz] - b[zz]) == 1) return a[zz]; } // no winning moves??? (excluding i=0) // THEN PLAY ROCK! return ROCK; } Basically what it does is start by looking at all the code from i/2 to i-1 and look for analogue in the code before that which could help predict what should follow. It's unlikely to find that, so then it checks the code from i/2 +1 to i-1 and sees if there is an analogue among the previous code, etc. It keeps shrinking the size that it looks for... for example, it could get down to i-3, i-2 and i-1 and have found an analogue to those rounds (ie, exactly the same moves in same sequence for a[] and b[]) in rounds, say, 7, 8 and 9. Then it plays whatever beats b[10], predicting b to play that again. This whole process cannot logically be done without a triple nested loop, but they are all time-shrinking loops that reduce when the higher-order ones reduce
  10. unreality

    cool! I have lots of questions: (1) how do you want the output of our maze-generators to be? A two-dimensional array of booleans or something? (2) (related to #1) what will the input be for our maze-navigators? we get to see the whole thing beforehand before "charting a course", right? (3) how exactly will the maze-traversing environment be run? what is "1 second"? (eg is it a second in real life based on your computer speed or is it a theoretical amount of time for the maze-navigator to move "1 space"), can we move diagonally or just orthogonally? (4) how will the scoring be exactly? You said "the average time (in seconds) it takes someone to traverse your maze/the average time it takes you to traverse someone else's maze." Does that slash refer to division? And who is "someone"? What if there is more than one opponent? Would be it like this: Maze X, Maze Y, Maze Z Navigator X, Navigator Y, Navigator Z X's score = (time takes Nav Y to get through Maze X + time takes Nav Z to get through Maze X) all divided by (time takes Nav X to get through Maze Y + time takes Nav X to get through Maze Z) or something along those lines?
  11. dawh! vs plasmid! rock vs paper scissors vs scissors rock vs paper scissors vs rock paper vs paper scissors vs rock paper vs scissors rock vs paper paper vs rock paper vs scissors scissors vs paper scissors vs scissors rock vs paper paper vs rock paper vs scissors scissors vs paper scissors vs rock rock vs scissors rock vs rock paper vs scissors scissors vs rock rock vs scissors scissors vs paper scissors vs rock rock vs scissors rock vs rock paper vs scissors scissors vs rock rock vs paper paper vs rock rock vs scissors scissors vs paper scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors paper vs rock rock vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors paper vs rock rock vs paper scissors vs scissors paper vs paper scissors vs rock paper vs paper scissors vs rock paper vs paper scissors vs rock dawh! won 14 games and plasmid! won 77 ~ there were 9 ties plasmid! wins!!! dawh! vs unreality! rock vs scissors rock vs scissors rock vs scissors rock vs paper scissors vs rock paper vs rock paper vs rock paper vs rock paper vs scissors rock vs rock paper vs rock paper vs scissors rock vs paper scissors vs rock paper vs scissors rock vs paper scissors vs rock paper vs scissors rock vs paper scissors vs rock paper vs scissors scissors vs paper scissors vs rock rock vs scissors rock vs paper paper vs rock paper vs scissors scissors vs paper scissors vs rock rock vs paper paper vs rock rock vs scissors rock vs paper paper vs rock paper vs scissors scissors vs rock rock vs scissors scissors vs paper scissors vs rock rock vs paper paper vs scissors scissors vs paper paper vs rock rock vs scissors rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors dawh! won 19 games and unreality! won 80 ~ there were 1 ties unreality! wins!!! dawh! vs pattern_seeker_defeater rock vs paper scissors vs rock paper vs scissors rock vs paper scissors vs rock paper vs scissors scissors vs paper scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock rock vs scissors scissors vs rock dawh! won 47 games and pattern_seeker_defeater won 53 ~ there were 0 ties pattern_seeker_defeater wins!!! it was close though Framm! vs phillip! rock vs scissors paper vs paper scissors vs rock paper vs scissors scissors vs rock rock vs paper paper vs rock scissors vs rock rock vs rock scissors vs rock rock vs rock paper vs paper scissors vs paper rock vs paper paper vs rock scissors vs paper rock vs scissors paper vs scissors rock vs scissors paper vs scissors scissors vs scissors rock vs rock paper vs scissors scissors vs scissors paper vs scissors scissors vs scissors rock vs paper scissors vs paper rock vs scissors paper vs scissors scissors vs scissors rock vs scissors paper vs rock rock vs rock paper vs scissors scissors vs scissors rock vs rock paper vs rock scissors vs scissors rock vs rock paper vs rock scissors vs rock paper vs rock scissors vs rock rock vs scissors paper vs scissors scissors vs rock rock vs rock paper vs paper scissors vs rock rock vs rock paper vs paper scissors vs rock rock vs rock scissors vs rock rock vs rock paper vs paper scissors vs rock rock vs scissors paper vs rock scissors vs paper rock vs paper paper vs rock rock vs rock paper vs paper scissors vs paper rock vs paper paper vs paper scissors vs scissors paper vs paper scissors vs paper rock vs paper scissors vs rock rock vs rock paper vs paper scissors vs scissors rock vs rock paper vs scissors rock vs rock paper vs scissors scissors vs paper rock vs paper paper vs paper scissors vs rock rock vs rock paper vs paper scissors vs rock paper vs rock scissors vs scissors rock vs rock paper vs scissors scissors vs scissors rock vs rock paper vs rock scissors vs rock rock vs rock paper vs rock scissors vs rock rock vs paper scissors vs paper Framm! won 26 games and phillip! won 35 ~ there were 39 ties phillip! wins!!! Framm! vs plasmid! rock vs paper paper vs scissors scissors vs paper paper vs scissors scissors vs rock rock vs scissors paper vs rock scissors vs rock rock vs paper scissors vs scissors rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors rock vs rock paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock paper vs paper scissors vs rock rock vs paper scissors vs scissors rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors rock vs rock paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock paper vs paper scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper scissors vs scissors rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors rock vs rock paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock paper vs paper scissors vs rock rock vs paper scissors vs scissors rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors rock vs rock paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock paper vs paper scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper scissors vs scissors Framm! won 3 games and plasmid! won 84 ~ there were 13 ties plasmid! wins!!! Framm! vs unreality! rock vs scissors paper vs scissors scissors vs rock paper vs rock scissors vs rock rock vs scissors paper vs scissors scissors vs rock rock vs scissors scissors vs scissors rock vs rock paper vs rock scissors vs rock rock vs paper paper vs rock scissors vs rock rock vs paper paper vs scissors rock vs rock paper vs scissors scissors vs rock rock vs scissors paper vs rock scissors vs rock paper vs paper scissors vs rock rock vs scissors scissors vs scissors rock vs paper paper vs scissors scissors vs paper rock vs rock paper vs scissors rock vs rock paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs paper rock vs paper paper vs scissors scissors vs paper paper vs paper scissors vs rock rock vs paper paper vs scissors scissors vs paper rock vs paper paper vs scissors scissors vs rock rock vs scissors paper vs rock scissors vs rock rock vs scissors scissors vs scissors rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors rock vs rock paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock paper vs paper scissors vs rock rock vs paper scissors vs scissors rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors rock vs rock paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs scissors paper vs scissors scissors vs rock paper vs paper scissors vs rock rock vs paper paper vs rock scissors vs rock rock vs paper paper vs scissors scissors vs paper rock vs paper paper vs scissors scissors vs rock rock vs paper scissors vs scissors Framm! won 19 games and unreality! won 66 ~ there were 15 ties unreality! wins!!! Framm! vs dawh! rock vs rock paper vs paper scissors vs scissors paper vs rock scissors vs scissors rock vs rock paper vs paper scissors vs scissors rock vs rock scissors vs paper rock vs rock paper vs paper scissors vs scissors rock vs rock paper vs paper scissors vs scissors rock vs rock paper vs paper rock vs scissors paper vs paper scissors vs scissors rock vs rock paper vs paper scissors vs scissors paper vs rock scissors vs rock rock vs scissors scissors vs scissors rock vs rock paper vs paper scissors vs scissors rock vs scissors paper vs paper rock vs rock paper vs paper scissors vs rock rock vs scissors paper vs scissors scissors vs rock rock vs scissors paper vs scissors scissors vs rock paper vs scissors scissors vs rock rock vs scissors paper vs scissors scissors vs rock rock vs scissors paper vs scissors scissors vs rock rock vs scissors paper vs scissors scissors vs rock rock vs scissors scissors vs scissors rock vs scissors paper vs scissors scissors vs rock rock vs scissors paper vs scissors scissors vs rock rock vs scissors paper vs scissors rock vs rock paper vs scissors scissors vs rock rock vs scissors paper vs scissors scissors vs rock paper vs scissors scissors vs rock rock vs scissors scissors vs scissors rock vs scissors paper vs scissors scissors vs rock rock vs scissors paper vs scissors rock vs rock paper vs scissors scissors vs rock rock vs scissors paper vs scissors scissors vs rock rock vs scissors paper vs scissors scissors vs rock paper vs scissors scissors vs rock rock vs scissors paper vs scissors scissors vs rock rock vs scissors paper vs scissors scissors vs rock rock vs scissors paper vs scissors scissors vs rock rock vs scissors scissors vs scissors Framm! won 25 games and dawh! won 42 ~ there were 33 ties dawh! wins!!! Framm! vs MrApple! rock vs rock paper vs paper scissors vs rock paper vs paper scissors vs rock rock vs rock paper vs paper scissors vs rock rock vs rock scissors vs paper rock vs paper paper vs rock scissors vs paper rock vs paper paper vs paper scissors vs paper rock vs rock paper vs paper rock vs paper paper vs rock scissors vs rock rock vs rock paper vs paper scissors vs paper paper vs rock scissors vs paper rock vs paper scissors vs rock rock vs paper paper vs rock scissors vs paper rock vs paper paper vs rock rock vs rock paper vs paper scissors vs rock rock vs rock paper vs rock scissors vs rock rock vs rock paper vs rock scissors vs paper paper vs rock scissors vs paper rock vs rock paper vs rock scissors vs rock rock vs rock paper vs rock scissors vs paper rock vs paper paper vs rock scissors vs rock rock vs rock scissors vs rock rock vs paper paper vs rock scissors vs paper rock vs paper paper vs paper scissors vs rock rock vs rock paper vs rock rock vs rock paper vs rock scissors vs paper rock vs paper paper vs rock scissors vs rock paper vs paper scissors vs rock rock vs paper scissors vs rock rock vs paper paper vs paper scissors vs paper rock vs rock paper vs rock rock vs paper paper vs rock scissors vs rock rock vs rock paper vs paper scissors vs rock rock vs rock paper vs rock scissors vs rock paper vs rock scissors vs rock rock vs paper paper vs rock scissors vs paper rock vs rock paper vs rock scissors vs paper rock vs paper paper vs rock scissors vs paper rock vs paper scissors vs rock Framm! won 37 games and MrApple! won 35 ~ there were 28 ties Framm! wins!!! Framm! vs SomeGuy! rock vs rock paper vs rock scissors vs rock paper vs rock scissors vs paper rock vs scissors paper vs rock scissors vs paper rock vs scissors scissors vs rock rock vs scissors paper vs paper scissors vs rock rock vs scissors paper vs paper scissors vs rock rock vs scissors paper vs paper rock vs rock paper vs rock scissors vs rock rock vs rock paper vs rock scissors vs rock paper vs rock scissors vs paper rock vs scissors scissors vs rock rock vs scissors paper vs paper scissors vs rock rock vs scissors paper vs paper rock vs rock paper vs rock scissors vs rock rock vs rock paper vs rock scissors vs rock rock vs rock paper vs rock scissors vs rock paper vs rock scissors vs paper rock vs scissors paper vs rock scissors vs paper rock vs scissors paper vs rock scissors vs paper rock vs scissors paper vs rock scissors vs paper rock vs scissors scissors vs rock rock vs scissors paper vs paper scissors vs rock rock vs scissors paper vs paper scissors vs rock rock vs scissors paper vs paper rock vs rock paper vs rock scissors vs rock rock vs rock paper vs rock scissors vs rock paper vs rock scissors vs paper rock vs scissors scissors vs rock rock vs scissors paper vs paper scissors vs rock rock vs scissors paper vs paper rock vs rock paper vs rock scissors vs rock rock vs rock paper vs rock scissors vs rock rock vs rock paper vs rock scissors vs rock paper vs rock scissors vs paper rock vs scissors paper vs rock scissors vs paper rock vs scissors paper vs rock scissors vs paper rock vs scissors paper vs rock scissors vs paper rock vs scissors scissors vs rock Framm! won 57 games and SomeGuy! won 22 ~ there were 21 ties Framm! wins!!! Framm! vs jarze! rock vs rock paper vs paper scissors vs scissors paper vs rock scissors vs scissors rock vs rock paper vs paper scissors vs scissors rock vs rock scissors vs paper rock vs rock paper vs paper scissors vs scissors rock vs rock paper vs paper scissors vs scissors rock vs rock paper vs paper rock vs scissors paper vs paper scissors vs scissors rock vs rock paper vs paper scissors vs scissors paper vs rock scissors vs scissors rock vs rock scissors vs paper rock vs rock paper vs paper scissors vs scissors rock vs rock paper vs paper rock vs scissors paper vs paper scissors vs scissors rock vs rock paper vs paper scissors vs scissors rock vs rock paper vs paper scissors vs scissors paper vs rock scissors vs scissors rock vs rock paper vs paper scissors vs scissors rock vs rock paper vs paper scissors vs scissors rock vs rock paper vs paper scissors vs scissors rock vs rock scissors vs paper rock vs rock paper vs paper scissors vs scissors rock vs rock paper vs paper scissors vs scissors rock vs rock paper vs paper rock vs scissors paper vs paper scissors vs scissors rock vs rock paper vs paper scissors vs scissors paper vs rock scissors vs scissors rock vs rock scissors vs paper rock vs rock paper vs paper scissors vs scissors rock vs rock paper vs paper rock vs scissors paper vs paper scissors vs scissors rock vs rock paper vs paper scissors vs scissors rock vs rock paper vs paper scissors vs scissors paper vs rock scissors vs scissors rock vs rock paper vs paper scissors vs scissors rock vs rock paper vs paper scissors vs scissors rock vs rock paper vs paper scissors vs scissors rock vs rock scissors vs paper Framm! won 14 games and jarze! won 0 ~ there were 86 ties Framm! wins!!!
  12. yea, thanks for playing!! phillip! vs plasmid! scissors vs paper paper vs scissors rock vs paper scissors vs scissors rock vs paper paper vs rock scissors vs paper scissors vs scissors paper vs paper paper vs rock paper vs rock paper vs scissors scissors vs paper scissors vs scissors scissors vs paper scissors vs rock paper vs rock paper vs scissors paper vs scissors paper vs scissors scissors vs scissors scissors vs rock scissors vs scissors scissors vs rock rock vs rock scissors vs scissors scissors vs rock scissors vs rock scissors vs rock scissors vs rock rock vs rock rock vs rock scissors vs rock scissors vs rock rock vs rock rock vs rock scissors vs rock scissors vs rock rock vs rock rock vs rock rock vs rock rock vs paper rock vs rock rock vs paper rock vs paper rock vs paper rock vs paper rock vs paper paper vs paper paper vs scissors paper vs scissors paper vs scissors paper vs scissors paper vs scissors scissors vs scissors scissors vs rock scissors vs rock scissors vs rock paper vs rock paper vs scissors scissors vs scissors paper vs rock scissors vs scissors scissors vs rock paper vs rock paper vs scissors paper vs scissors paper vs scissors paper vs scissors paper vs scissors paper vs scissors paper vs scissors scissors vs scissors scissors vs rock scissors vs rock scissors vs rock scissors vs rock scissors vs rock scissors vs rock scissors vs rock paper vs rock paper vs scissors paper vs scissors paper vs scissors rock vs scissors rock vs scissors paper vs paper scissors vs scissors scissors vs rock scissors vs rock scissors vs rock scissors vs rock rock vs rock rock vs paper rock vs paper rock vs paper scissors vs paper scissors vs rock rock vs rock scissors vs paper phillip! won 16 games and plasmid! won 59 ~ there were 25 ties plasmid! wins!!! ~~~ and here is the code for the 8 algos that competed: hope everyone had fun! We can still add darthnoob/jazzship/izzy too, when/if those get done
  13. Framm! vs unreality! rock vs scissors paper vs scissors scissors vs rock paper vs rock scissors vs rock rock vs scissors paper vs scissors scissors vs rock rock vs scissors scissors vs scissors rock vs rock paper vs rock scissors vs rock rock vs paper paper vs rock scissors vs rock rock vs paper paper vs scissors rock vs rock paper vs scissors scissors vs rock rock vs scissors paper vs rock scissors vs rock paper vs paper scissors vs rock rock vs scissors scissors vs scissors rock vs paper paper vs scissors scissors vs paper rock vs rock paper vs scissors rock vs rock paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs paper rock vs paper paper vs scissors scissors vs paper paper vs paper scissors vs rock rock vs paper paper vs scissors scissors vs paper rock vs paper paper vs scissors scissors vs rock rock vs scissors paper vs rock scissors vs rock rock vs scissors scissors vs scissors rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors rock vs rock paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock paper vs paper scissors vs rock rock vs paper scissors vs scissors rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors rock vs rock paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs scissors paper vs scissors scissors vs rock paper vs paper scissors vs rock rock vs paper paper vs rock scissors vs rock rock vs paper paper vs scissors scissors vs paper rock vs paper paper vs scissors scissors vs rock rock vs paper scissors vs scissors Framm! won 19 games and unreality! won 66 ~ there were 15 ties unreality! wins!!! Framm! vs plasmid! rock vs paper paper vs scissors scissors vs paper paper vs scissors scissors vs rock rock vs scissors paper vs rock scissors vs rock rock vs paper scissors vs scissors rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors rock vs rock paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock paper vs paper scissors vs rock rock vs paper scissors vs scissors rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors rock vs rock paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock paper vs paper scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper scissors vs scissors rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors rock vs rock paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock paper vs paper scissors vs rock rock vs paper scissors vs scissors rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors rock vs rock paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock paper vs paper scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper paper vs scissors scissors vs rock rock vs paper scissors vs scissors Framm! won 3 games and plasmid! won 84 ~ there were 13 ties plasmid! wins!!!
  14. alright I changed that one thing in dawh's program (the -1 to a +2), ran it again, and here are the results! Final Results: phillip! vs plasmid!: plasmid! wins!!! phillip! vs unreality!: unreality! wins!!! phillip! vs dawh!: dawh! wins!!! phillip! vs MrApple!: phillip! wins!!! phillip! vs Framm!: phillip! wins!!! phillip! vs SomeGuy!: phillip! wins!!! phillip! vs jarze!: jarze! wins!!! plasmid! vs unreality!: plasmid! wins!!! plasmid! vs dawh!: plasmid! wins!!! plasmid! vs MrApple!: plasmid! wins!!! plasmid! vs Framm!: plasmid! wins!!! plasmid! vs SomeGuy!: plasmid! wins!!! plasmid! vs jarze!: plasmid! wins!!! unreality! vs dawh!: unreality! wins!!! unreality! vs MrApple!: unreality! wins!!! unreality! vs Framm!: unreality! wins!!! unreality! vs SomeGuy!: unreality! wins!!! unreality! vs jarze!: unreality! wins!!! dawh! vs MrApple!: dawh! wins!!! dawh! vs Framm!: dawh! wins!!! dawh! vs SomeGuy!: dawh! wins!!! dawh! vs jarze!: dawh! wins!!! MrApple! vs Framm!: Framm! wins!!! MrApple! vs SomeGuy!: MrApple! wins!!! MrApple! vs jarze!: jarze! wins!!! Framm! vs SomeGuy!: Framm! wins!!! Framm! vs jarze!: Framm! wins!!! SomeGuy! vs jarze!: It was a tie!!! Win Count: phillip!: 3.0 plasmid!: 7.0 unreality!: 6.0 dawh!: 5.0 MrApple!: 1.0 Framm!: 3.0 SomeGuy!: 0.5 jarze!: 2.5 Type y for analysis y [Algos: 8] [Games: 28] [Average Score: 3.5] [Sdev: 2.165] [MAD: 1.875] From Greatest to Least: plasmid!: 7.0 [467 wins, 125 ties, 108 losses] 11.080 unreality!: 6.0 [440 wins, 118 ties, 142 losses] 10.013 dawh!: 5.0 [288 wins, 168 ties, 244 losses] 7.351 phillip!: 3.0 [194 wins, 227 ties, 279 losses] 4.114 Framm!: 3.0 [181 wins, 235 ties, 284 losses] 2.991 jarze!: 2.5 [140 wins, 248 ties, 312 losses] 3.021 MrApple!: 1.0 [180 wins, 235 ties, 285 losses] 1.380 SomeGuy!: 0.5 [123 wins, 218 ties, 359 losses] 0.000 The biggest blowout game(s) was(were): plasmid! won 98 games and jarze! won 0 ~ there were 2 ties Type y to play again n Thanks for playing! let me know if you want to see a specific game played out, or a specific chunk of code - the entire results page was far too big to post here
  15. Yes that's probably it... I've always been doing that (2 instead of, 1 instead of -2, etc) only because I wasn't sure how it worked with negative numbers and apparently too lazy to test it haha,, but I think if you use the operation "mod" instead of "%" it returns only those within 0 to n-1 range, not sure. Safer to just add 2 and %3... thanks for pointing that out! I'll change all of those instances where I see them in yours and other algos, as soon as the laptop with java is returned to my household (should be later today)
  16. here's the code of the 8 programs This line just allows me to run those all at once: else if (nextln.equals("y")) // T3 { algos = new int[]{ 34, 35, 36, 40, 41, 42, 43, 45 }; } and here are the constants involved: public static final int ROCK = 0; public static final int PAPER = 1; public static final int SCISSORS = 2; public static final int ROUNDS = 100; the ones we are really missing is jazzship (whose program is still incomplete) and darthnoob. Izzy never got around to submitting one either Okay so I ran the results but it was halted by an error at this line: // First, look for any earlier rounds where BOTH (1) you played your // move from round i-1, and (2) the opponent played his move from // round i-1 // Take a tally of what the opponent played afterward int tally[] = {0,0,0}; for (int round = 0; round < i-1; round++) { if ( (a[round] == a[i-1]) && (b[round] == b[i-1]) ) tally[b[round+1]]++; } The problem is ArrayOutOfBoundsException [-1] on the line I bolded this is in the program "plasmid!" written by plasmid. I've spent some time thinking about it and the program itself is solid and cannot return error by itself (above this code is two lines that return stuff in the case of i==0 and i==1) and "plasmid!" plays out successfully against other programs. My conclusion is that this part: tally[b[round+1]++ is the problem child because the opponent has played a move that is not 0, 1 or 2 (instead -1 somehow) and so tally[-1] is returning an error. The opponent at the time was "dawh!" Dawh, is there any way your program could return a -1 value? I have to go but I'll be back sometime today and I'll put in a debugger that will tell us at what round b[round+1] is evaluating to -1
  17. yeah we're still waiting on DarthNoob's algorithm I think, I haven't been reading the efforts on it. If you want we can do a test tournament without it, or we can wait
  18. unreality

    phillip: what Semper Rideo was saying is that to have willfully and soberly committed what you call an "atrocity", the person committing the act does not consider such an act an atrocity. You may think that "savage" island natives doing a human sacrifice is abhorrent, but to them it's part of their religion and lifestyle. Morality, like beauty, is in the eye of the beholder
  19. I watched it again yesterday and actually understood it much much much better. I feel like I have a solid grasp of the film (it did take many pauses and stops to think) and after watching it a third time I'll probably be pretty good on it, we'll see
  20. unreality

    the Law of One or Many suggests there is one or infinite universes, and that determines whether we are here by luck/divinity (One) or by the anthropic principle (Many)
  21. Has anyone else seen the movie Primer? I just watched it and it blew my mind; it literally blew my mind. I've spent the past hour on the internet looking up explanations but I'm still a bit foggy and plan on rewatching it at least a couple more times. Don't look up stuff about it before seeing it because that will intimidate you It was made with a 7000 thousand dollar budget lol
  22. unreality

    I agree with d3k3. We don't matter to the universe; we are collections of atoms that (after billions of years of very slow but incredible physical processes) have assembled into such elaborate systems to be self aware. We as life may be the ultimate destination of the universal "computer" but it doesn't mean we were its purpose if one exists, and I don't know how that Schrondinger's cat works in physics but I think it's more of an analogy on what happens on a quantum scale and we certainly don't directly observe that.
×
×
  • Create New...