Python | FreeGames Module In Hindi

पाइथन लैंग्वेज मे हमे बहुत से ऐसे module मिल जाते है जिनकी सहायता से हमे coding करने मे आसानी होती है। ऐसे ही एक module है FreeGames module। इस module को education और fun के लिए बनाया गया है।

Install FreeGames Module

# step 1 : command prompt को ओपन करे और निचे दी गयी कमांड को लिखे।

python -m pip install freegames

# step 2 : पाइथन freegames module दवारा provide किये games की list को देखने के लिए निचे दी गयी कमांड को लिखे।

python -m freegames list

# step 3 : Python FreeGames command-line interface को supports करता है। freegames Module की हेल्प के लिए निचे दी गयी कमांड लिखे।

python -m freegames --help

# step 4 : list मे दिए game को रन करने के लिए निचे दी गयी कमांड लिखे।

python -m freegames.gamename
example1 : python -m freegames.snake
example2 : python -m freegames.life