Code Monkey home page Code Monkey logo

ml2048's People

Contributors

andrestoic avatar guillermourcera avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

ml2048's Issues

TclError when exiting game

On exiting (closing the game window), the following error appears:

TclError Traceback (most recent call last)
in ()
4
5 our_machine=machine.Machine()
----> 6 our_machine.run()

C:\Users\gurce\Documents\Repos\ml2048\src\machine.py in run(self)
16 self.game.key_down(self.act()) #COMMENT TO RUN EXAMPLE
17 self.game.update_idletasks
---> 18 self.game.update()
19 def act(self):
20 return ("'z'") #DOES NOTHING

C:\Users\gurce\Anaconda3\lib\tkinter_init_.py in update(self)
1169 def update(self):
1170 """Enter event loop until all pending events have been processed by Tcl."""
-> 1171 self.tk.call('update')
1172 def update_idletasks(self):
1173 """Enter event loop until all idle callbacks have been called. This

TclError: can't invoke "update" command: application has been destroyed

Slowdown due to logging

Logging slows down the program.

I think it's because it's opening and closing the log file on each iteration.
We should change it so that, for example, it only writes to the log once each episode.
I'm writing this here so that we don't forget.

I'll try to do this myself when I have the time but feel free to fix it if you wan't.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.