jatinmandav / gaming-in-python Goto Github PK
View Code? Open in Web Editor NEWCode to all the Games I made using Python Programming Language
Home Page: https://jatinmandav.wordpress.com
Code to all the Games I made using Python Programming Language
Home Page: https://jatinmandav.wordpress.com
Showing Type Error for a few number of lines in Minesweeper.py
TypeError: 'float' object cannot be interpreted as an integer
After 1 player wins the loop is still running and finally ends in error. The following errors was obtained
Traceback (most recent call last):
File "C:/Users/chainreaction.py", line 243, in
gameLoop()
File "C:/Users/chainreaction.py", line 220, in gameLoop
addAtom(i, j, players[currentPlayer])
File "C:/Users/chainreaction.py", line 137, in addAtom
overFlow(grid[i][j], color)
File "C:/Users/chainreaction.py", line 147, in overFlow
overFlow(cell.neighbors[m], color)
File "C:/Users/chainreaction.py", line 147, in overFlow
overFlow(cell.neighbors[m], color)
File "C:/Users/chainreaction.py", line 147, in overFlow
overFlow(cell.neighbors[m], color)
[Previous line repeated 1018 more times]
File "C:/Users/chainreaction.py", line 141, in overFlow
showPresentGrid()
File "C:/Users/chainreaction.py", line 104, in showPresentGrid
for i in range(cols):
RecursionError: maximum recursion depth exceeded in comparison
When a player tries to place an orb in the grid it return index error which can be fixed by typecasting the index values to integer.
In the following lines the changes were required:
147,148,231
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.