Tag Archives: object
Setters & Getters on Mootools classes
Although I haven’t need them for my classes, I thought it would be very cool to have the possibility to use them. Setters and Getters are very popular in modern programming languages, since they let you do some actions when a member/property of an object is being accessed or modified. Setters and Getters are native [...]
Solving the 8 Queen Puzzle in Javascript
Eight Queens is a classic problem which consist on being able to place 8 queens on a chess board without leaving them in position of eating each other. More info on Wikipedia. See the 8 Queens demo in action. On this demo I have created 3 different Mootools classes: ChessBoard, Piece and EightQueen. ChessBoard and [...]