Alvin Lin
1 min readApr 15, 2019

--

I’m assuming the players variable is referring to an array since you’re calling the splice method on it, in which case those arguments won’t work since splice takes indices for arguments.

If the players variable is a dictionary according to the post, then you can’t call the splice method and you should use the deletekeyword. This isn’t very robust however, and for my more complicated games, I use the hashmap package to handle players and clients.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Alvin Lin
Alvin Lin

Written by Alvin Lin

I'm a software engineer from New York City with a permanent case of bed hair.

No responses yet

Write a response