Alpha is a neuronal system written in AIML. It basically assimilates human language and makes it an indictable command. The language AIML (Artificial Intelligence Markup Language) is an extension of HTML, the same in which the web is written. It is called markup language because all the instruccions go between labels, differentiating a full programming language. Its core is based on a category > pattern > response relationship, with the pattern being what the user types. Alpha responses are in English for accessibility purposes. Here are some examples of code in AIML:
<?xml version=“1.0” encoding=“UTF–8”?> <aiml version=“2.0”> <category> <pattern>Hello</pattern> <template>Hi, user!</template> </category> <category> <pattern>Who are you</pattern> <template>I am Alpha</template> </category> </aiml> </?xml>
Let me explain to you how this works. The first line (where XML version and codification is specified) is known as prolog, this line indicates the browser that is a standarized XML file. Then there is the <aiml> tag, this tag is inside the prolog; this is what developers call “nesting”, that means the prolog is the parent tag of the aiml one. At next it comes the <category> tag, a category is a question-answer relationship, being the <pattern> tag the user's question and the <template> Alpha's answer.
Pong, the famous Atari videogame. I've redesigned to be fully compatible with HTML5 technologies. The mechanics are the same, unlike here the opponent is invincible. I wrote the game inside a canvas tag, which is proper to draw a canvas on a HTML website. For the adversary to predict the movements of the ball, it runs a geometric algorithm that uses the Cartesian method to find the correct coordinates. Of course at some point it may lose only for one thing: the speed of the ball. At any time the ball will move faster than Alpha and this will make him lose...if you haven't, of course. As its developer, I have beaten my game only once, and was due to an error in the AI.
This is an interesting project because it makes use of mathematical thinking. PS-Doku is a system designed to solve Sudokus. If you want me to write a tutorial about this project, leave a comment. Its source code is available on GitHub. Stay tuned!
Diplomacy is alternate project that comes with the need for a product for a school activity related to marketing. The full team is constituted by Aldo G. Cabrera Aguilera (Design), Erick Mauricio M. Valdez (Market Research), Elioth Fernando R. Rodriguez (Advertising), (End User) and naturally, me, Pablo Ivan G. Soto (Development). It is aimed at high school students, enabling them to practice the subjects they choose. By integrating it with Alpha System, the application becomes a huge data base, as the user has the ability to perform any questions regarding a subject of study. It will also feature a second version, which is the "Teachers version". In this version teachers can monitor student accounts and distribute their exercises.
Have any questions? Just want to say hello? You can use the form below to leave a public message. Your data is safe and won't be used for any other purpose than being able to reply. Although your email is optional, if you decide to write it, make sure it is a valid address. Press 'Submit' when your message is ready to be...submitted.