CodeWalrus

Development => Calculators => Calc Projects, Programming & Tutorials => Topic started by: Jean-Baptiste Boric on October 28, 2018, 09:41:33 AM

Title: Turtle + RPN on NumWorks
Post by: Jean-Baptiste Boric on October 28, 2018, 09:41:33 AM
I'm baaack ('cause social network login was broken here for a while).

I'm working on an integrated turtle Python module for the NumWorks calculator (https://github.com/numworks/epsilon/pull/748). It's coming along rather nicely:

from turtle import *
for i in range(255):
  gray=255-i
  color(gray,int(gray*0.75),int(gray*0.25))
  forward(i*0.1)
  left(10)


(https://user-images.githubusercontent.com/9872969/47604134-95e7a000-d9f5-11e8-97b8-4bc499757712.png)

I've also done a RPN app for those who are addicted to HP calculators (https://github.com/boricj/numworks-rpn). The basics are here (16-level stack with nearly all operators on the kerboard implemented), but there's a lot of room for improvements. Turns out there are enough people interested that I get pull requests on this project from time to time. The discussion thread for this project, for lack of a better place, is at https://github.com/numworks/epsilon/issues/35#issuecomment-417885356.