How to Make a Snake Game in the Blender Game Engine

DragonLEE writes:
How to make snake game in BGE with Python programming.
Move object with Logic Bricks and without Logic Bricks.Using:
bge.logic.getCurrentController()
bge.logic.getCurrentScene()
bge.logic.endGame()
bge.logic.keyboard
bge.events
addObject
worldPosition

Hi!
Can you send me the script, please