+ 2

Why can't I create a game in the code playground?!

This is the error I'm getting. If anyone can tell my why this isn't working that would be very much appreciated. Traceback (most recent call last): File "..\Playground\", line 2, in <module> import pygame, sys, random, time ImportError: No module named 'pygame'

19th Jul 2017, 3:35 AM
ΞⓀ⒟Ⓝ⒌Ξ
ΞⓀ⒟Ⓝ⒌Ξ - avatar
3 Answers
+ 4
It's not just that only some modules are available (installed) on playground: it run code on server side, so only sololearn is able to install and decide what modules to provide... but some modules are technically unnecessary as playground is limited to text output (CLI) and cannot handle any GUI, neither 'time' module functions (as there is no 'real' time local run of scripts ^^)
19th Jul 2017, 6:00 AM
visph
visph - avatar
+ 2
i think playground not support Pygame module
19th Jul 2017, 3:42 AM
Mayur Chaudhari
Mayur Chaudhari - avatar
0
I wanted to share it with people so they can try it out and send me improvements
19th Jul 2017, 3:48 AM
ΞⓀ⒟Ⓝ⒌Ξ
ΞⓀ⒟Ⓝ⒌Ξ - avatar