I added to my Tetris clone a FLEX branch, it only uses the compiler and not the FLEX class containers (unnecessary for this little game). The point is you can use the free API tools to make a simple game like this, without needing the Flash IDE at all.
Sunday, February 7, 2010
Monday, February 1, 2010
The Pascal's triangle
It was already time to change the animation for this blog, (the little thing at the right, now with a chess board), so I would do a very short description of the previous one here:
This animation is just a Pascal's Triangle (reflected in the four quadrants) with different colors for cells accordingly to their modules with some random number not prime that changes with every iteration. The triangle for the next iteration is drawn row by row, while the previous one is faded. Empty spaces are cells that are divisible by the selected random number.
If you feel more interested, you could check the section 2.3 of the book Chaos and Fractals (Springer) that gave me the inspiration for this. NOTE: I updated this animation to use canvas HTML5 but the old Flash source code is here
Have a nice night!
If you feel more interested, you could check the section 2.3 of the book Chaos and Fractals (Springer) that gave me the inspiration for this. NOTE: I updated this animation to use canvas HTML5 but the old Flash source code is here
Have a nice night!
Thursday, January 7, 2010
Simulator for a basic computer
This is simple simulator for the basic computer described in the book of Morris Mano "Computer System Architecture". Here professor Hyunsoo Yoo maintains a succinct but complete description of this computer, check it if you can't find the book. In special look for the lectures 5 (Basic Computer Organization and Design) and 6 (Programming the Basic Computer) that this simulator uses as foundation.
Sunday, August 2, 2009
Very very simple interpreter in Flex
This weekend I've been playing with making a very very simple interpreter in Flash, mostly for drawing functions of the form: z = f(x, y). This is based in the part 4 of the famous Lets build a Compiler! tutorial by Jack Crenshaw.
Labels:
flex
Saturday, July 11, 2009
Solving simple International Mathematical Olympiad problems.
Solving simple International Mathematical Olympiad problems by programming is a sadistic stress reliever. They were originally thought to be solved using only paper, pencil and lots of young and smart neurons. Let's amuse ourselves solving them with a bit of code. Afterall, Why not to use the nukes? :D 

Sunday, July 5, 2009
IMO 1959 Problem 04
The year is 1959. The place: Braşov, Romania, where the first International Mathematical Olympiad is being held. The problem is short, simple and sweet:
The mathematical solution is left as an exercise, because you can use the brute force Luke. :D
Cheers.
Construct a right-angled triangle whose hypotenuse c is given if it is known that the median from the right angle equals the geometric mean of the remaining two sides of the triangle.
The mathematical solution is left as an exercise, because you can use the brute force Luke. :D
Cheers.
Subscribe to:
Posts (Atom)