Snake head placed on the center - Python using turtle

0 votes
I'm trying to build the basic snake game using the python's turtle module. I want my snakehead to be placed at the center initially. How do I get that done?
Jun 21, 2019 in Python by Bob

1 answer to this question.

0 votes
You can use turtle's goto() function. This function makes sure that the object(in this case, snake's head) you've placed on the window starts at the center(0,0).
answered Jun 21, 2019 by Greg

Related Questions In Python

0 votes
1 answer

Change the snake head color using python turtle

You can et the snakehead color by ...READ MORE

answered Jun 19, 2019 in Python by Faiza
0 votes
1 answer

How can I rename files on the fly using Python?

You could simply use a wrapper object ...READ MORE

answered Sep 7, 2018 in Python by aryya
• 7,380 points
0 votes
1 answer

Change the window background color using turtle - python

Try this: import turtle #set up the screen wn = ...READ MORE

answered Jun 19, 2019 in Python by Faiza
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,461 views
0 votes
0 answers
+4 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,800 points
0 votes
1 answer
0 votes
1 answer

Move turtle using the arrow keys in Python

You can use something like this: wn.onkey(move_up, 'Up') wn.onkey(move_left, ...READ MORE

answered Jul 5, 2019 in Python by Travis