Showing posts with label learning. Show all posts
Showing posts with label learning. Show all posts

Wednesday, July 3, 2013

Did Bots in Quake 3 "Learn" Pacifism?


Anon supposedly recreated the ending of Wargames


No. A 4chan post has been circulating the Internet recently, claiming that after four years on a server full of bots in a Quake 3 death match game, the bots learned that the best strategy was not to kill each other. Huffington Post jumped on the story, although they later updated the page admitting the story was a hoax. However, they did not explain why the story was fake. A major news outlet jumping on an anonymous 4chan copypasta should be a reflection of the current state of news today. 

The original 4chan thread. Click for large.
A whole thesis was published by ID Software in 2001 detailing the build and intricacies of the bots. Furthermore, in 2005 the Quake 3 source code was released under the GNU license, meaning anyone with a compiler could dig through the code. This should give us the tools necessary to scrutinize these claims.
Let us first take a look first at the original post:

"Quake 3 bots were designed off an artificial neural network.
They would effectively "think" to figure out the best way to do things. 
They would see which tactics worked and which didn't.
The longer they played the more they would learn about you, figuring out your patterns, and this would apply to other bots aswell. For all intents and purposes they were one of the first learning AI in a game.

When I found out that I set up a Quake 3 arena server on my pirating server just to have 16 bots over and over just to see how good they would get. 
I set the server up 4 years ago, it's been running the entire time, I forgot about it until this thread. I'm gonna go check on them."
From page 13 of the thesis on Quake AI:
Although neural networks can be useful in several areas in bot AI they are not used for the Quake III Arena bot.
John Carmack even tweeted a response to the claims being made:


The bots are programmed to react to players given reaction time and accuracy constraints given the particular map. The bots DO have an internal representation of the each map given the "volume" of the map. They are not self learning, and they do not aggregate information for use later. "Learning" might not even be an appropriate context for what the bots do. Instead, having your bots standing around is much more consistent with having a bug in the code. For example, the files could have reached a max size limit, and just stopped.

If each of his bot logs are 256 megs each, and there are 16 bots, loading 8 gigs of ram on a 32-bit computer game is implausible in the first place. Even if this guy had over 8 gigs or ram in his computer, he simply could not load all of that bot data in the first place. While the data could be loaded as needed into the rom, the thesis specifically states that not being able to load such specific data in a fast paced game was a limitation of the game, and why a neural network could not be used. Once again, from page 13 of the thesis:
It is also possible to train a neural network during gameplay, which allows the bot to acquire all kinds of knowledge. However training of a neural network is often a time consuming process. The learning capabilities of the neural network will often have to be limited due to the time constraints in a real-time application like a game.
Finally there are other aspects of the story that are bizarre. Who has a server running for four years and forgets about it? During that time the game never crashed; the electricity never went out? No screenshots or video of this situation exists? The particular conditions should be replicable, and could possibly take much less time than4 years to replicate. I am not saying that such a situation of pacifism is implausible, but this story is clearly a hoax.

Quake has almost always been predominantly a multi-player game, with AI rarely being a focus in lieu of graphics, networking, and game-play elements. The bots could still do some pretty impressive things however. They were able to parse per-determined chat sentences given certain environmental characteristics (p.57).

ex. 1

if
environmental change
then
if
bot wants to
chat
then
choose initial chat
use random strings in chat message
replace synonyms in chat message to add variation
output chat message
endif
endif
 
 ex. 2

if
bot receives a message
then
replace synonyms in the message
interpret message using match templates
if
match is found
then
perform action
else
if
messages is a chat message from another player
then
if
bot wants
to reply to this message
then
find a reply chat
use random strings in chat message
replace synonyms in chat message to add variation
output chat message
endif
endif
endif
endif
As mentioned before, the bots DO react to players given reaction time and accuracy constraints and traverse "nodes" in relation to the current map. In this way, the bots do "think", but they do not "learn". AI programming is still being developed interdependently for contemporary first person shooters, and none of them have replicated anything like this. It is not to say that something like this could never happen. But one should keep in mind the disclaimer pasted across the top of some 4chan boards. "The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact."

Tuesday, January 31, 2012

Learn To Program

Just think of it like a puzzle.

Academic advisers have told me that if I ever expect to work under them in a lab, I better learn to code, or expect to be taught how to code. I have found a couple of resources since then to help me out. The most likely one to hold my, and your attention alike is codecademy, which treats learning to program in Java more or less like a game; you are taken through stages, given achievements, and there are even hints available. This is how I have been spending my Saturday nights as of lately.  

Another option is the book Invent Your Own Computer Games With Python:

This is a trend setting programming book
simply for the fact that it has a cool cover.

I purchased this book when it came out, only to realise that the book was released under Creative Commons, and you can download the PDF for free. (I command you, go forth dear readers and succeed where I have once failed!) It honestly is a good book, although it is actually geared more towards children. I have also read books in the "Dummies" series, such as "C For Dummies", and as expected; these books move at a boorish pace.

The website Coding Tortoise is another place to learn Java. I believe the person running it has cut back to posting once every two weeks, but there is still a backlog of posts.

Monday, May 23, 2011

Applicable Learning

This book was cited in another book I was reading. I originally thought it was going to be an academic article that I could read in under an hour, but now that it's a whole book, and with my giant reading list this summer; it will take some time before I get to read the whole thing.

One of the points made by this book, as well as an academic article by Steinke is on how figuring out ways to apply the material you are trying to learn is more useful to the learner than memorization (full source and citation at the bottom of this post). This is because you are thinking critically and using problem solving:
"As a pedagogy, service-learning inherently teaches the kind of thinking skills and knowledge application necessary for success outside academia."
For this reason it is always important to think about how something is applicable when you are learning it, especially if you have a terrible professor. "How is this equation important or useful to something I might do?", "Why am I learning this?"  And "Is this course work important for what I want to do after school?" are all important questions to ask yourself time to time. If you can't answer these question, it might be time to reevaluate your academic priorities.

Steinke, Pamela. "Assessing Service-Learning." Research & Practice in Assessment 1.2 (2007): 1-8. Penn State. Web. 23 May 2011.

Thursday, May 19, 2011

Flash Cards Redux

I recently made a post about using flash cards. A few people who commented on the post said they are comfortable with using Anki, a flash card program.


Anki is cool because it's a little program that lets you download "flashcard" sets that other users have already created to study with. It is also available for smart phones, so if you have one, you can take your flashcards on the go with you. However I personally believe that you lose an element of the learning process, which is writing the words down. 

You can find flash cards German speakers have made to practice their English. You can also find chemistry, biology, or anything else that flashcards could be made for. It is a really neat idea that all the content is user created stuff that is being shared, therefore every day there should be more and more content. Plus it beats having a stack of flash cards like this:
Although I do worry about the quality of the content. You could hypothetically study a few cards that are incorrect, and learn the wrong information. Researching the validity of every flash card might help with the memorization process.

Last night I went over to a friend's house and they were all studying for a Psychology final. This video came up with a simple search for "study music" so it's not some super obscure thing, but it's a wonderful thing nonetheless. The music and visuals are great.
 
Try it out while you use Anki, practice your flash cards, or study in general and tell me what you think!

Tuesday, May 17, 2011

Rosetta Stone

I used Rosetta Stone every day the summer before I  went to Berlin for a semester. When I took elementary Arabic my freshman year at college, we had to use the program once every two weeks. I'm interested in hearing what other people's experiences have been with the program.


                                          FUCKIN LANGUAGE AND SHIT


I got through the first level of German, which will run you about $180 for the newest version. It gave me a leg up on pronunciation for sure. Saying the same words over and over out loud really helps. Especially with the umlauts (ü ö ä) there to throw you off when you first start. I also had a general idea of how verb declension worked, as well as a basic vocabulary to work with.

Nevertheless when I was in Germany, speaking and being spoken to was still tough. Rosetta Stone doesn't have you actively recalling the language you are trying to learn enough of the time. The program made me feel confident in my German, but I couldn't do anything useful with it other than understand sentences like "the book is laying on the table." Another problem I had with Rosetta Stone was that it didn't teach me much grammar. There are four cases in German, and there's no real way for Rosetta stone to present them to you in a functional way.

When I used the Arabic version of Rosetta Stone at the "language lab" at my school I found it helpful because it helped me learn the new alphabet as well as pronunciation of letters that don't exist in English. However this was used in conjunction with the language class and there was a native speaker of Arabic in the classroom to help.


Please comment and let me know about your personal experience with Rosetta Stone. I'm really interested in what people have to say. Did you think it was effective? Was it worth your money if you personally paid for it? How long did you use it and how often?

Sunday, May 15, 2011

Livemocha

Ok this is sort of a shameless plug, but I think this site is cool so here it goes.

Livemocha is a language learning site. Higher course levels cost money, but basic levels are free. The courses are like worse versions of Rosetta Stone. However the best part of the site is that there are exercises that have to be rated and graded by native speakers of the language, and as long as you are helpful you are matched with other helpful graders. This is absolutely free of charge. 

On top of that you can find native speakers who speak the language you want to learn. Because they are on a language learning site, they are more inclined to work with someone who does not speak well!

Check out the site, if you sign up cite rividzATgmailDOTcom as a referral if you can.
Website: https://www.livemocha.com/
My profile: http://www.livemocha.com/profiles/view/4388194