This is my solution of Tennis Coding Kata from codingdojo.org.
After 3 months of learning Java I started to solve this kata for the first time. My solution became overcomplicated and messy. I felt that it is far from acceptable, but I could not release the thought that it would be much easier to implement in php. I started to refactor and search for other codes, because I knew that I was wrong.
After a few refactoring session and inspirations from other programmers (like Antoine Hauck ), I came up with a version which I felt much relaxing to read and share. Puzzle solved.
If you have some comments or find some issue, feel free to contribute.