Using Rule-based Procedural Content Generation to Generate Students Cognitive and Affective Ability in Game Teaching (Faculty of Mathematics and Science Education, Universitas Pendidikan Indonesia, 2022)