CandyFactory is an educational game that teaches the concept of fractions to middle school students based on splitting operations with partitioning and iterating. It consists of three levels: Level 1 teaches proper fractions as part-whole concept. Level 2 teaches proper fractions as whole concept. Level 3 teaches proper as well as improper fractions as whole concept. A nominal score is displayed at the end of the game to show how well the student has done. Sound-based feedback and background music are provided.