User Tools

Site Tools


notes:discrete:fall2021:projects:pnf3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
notes:discrete:fall2021:projects:pnf3 [2021/09/23 00:43] – Added submission tutorial via lab46 smalik3notes:discrete:fall2021:projects:pnf3 [2021/09/23 06:09] (current) – Added reference for TIC-80 "missing" manual smalik3
Line 7: Line 7:
  
 =====Objective===== =====Objective=====
 +
 Using the TIC-80 fantasy console simulator on your pi, implement a program that visually displays a graph of the timed results of your various prime algorithms (brute force, brute force + optimizations, Sieve of Eratosthenes) so that one can more clearly see the difference in performance each algorithm offers. Using the TIC-80 fantasy console simulator on your pi, implement a program that visually displays a graph of the timed results of your various prime algorithms (brute force, brute force + optimizations, Sieve of Eratosthenes) so that one can more clearly see the difference in performance each algorithm offers.
  
Line 46: Line 47:
  
 For the displaying of time, since we will be measuring and graphing multiple instances, it may prove useful to store the largest value in a variable and use it to calculate your bound(s) for the time axis. You could also do so statically, which would be more consistent, but has the potential to be less rewarding. For the displaying of time, since we will be measuring and graphing multiple instances, it may prove useful to store the largest value in a variable and use it to calculate your bound(s) for the time axis. You could also do so statically, which would be more consistent, but has the potential to be less rewarding.
 +
 +=== Upward versus Downward ===
 +
 +While you may be able to scale and display data appropriately, displaying data upwards or downwards is a different story. Given how TIC-80 has its origin starting from the top left, one must manipulate the calculated points (from the scalers) in order to display downwards.
 +
 +In order for the bottom left to be treated as the origin (as we expect in a normal graph), the pointers must be subtracted from their respective maximum-possible value from the scaler.
 +
 +If we were to assume 50 is the maximum possible x-value, then we do "xScaler-point.x" in order to display upwards. A downward-leaning graph may be suitable if displayed in a detailed fashion, however it may not be ideal when wanting many different people to understand the data.
 +
 =====References===== =====References=====
  
 https://en.wikipedia.org/wiki/Cartesian_coordinate_system https://en.wikipedia.org/wiki/Cartesian_coordinate_system
 +
 +https://hub.xpub.nl/sandbot/PrototypingTimes/tic80-manual.html
  
 https://github.com/nesbox/TIC-80/wiki https://github.com/nesbox/TIC-80/wiki
Line 55: Line 67:
  
 =====Submission===== =====Submission=====
 +
 +In order to submit the game file, our "tic" file, the file must be added to your lab46 somehow. This can be achieved through FTP software, such as FileZilla, or more easily by putting the file onto your Pi then pushing to your repo and pulling from lab46.
 +
 +//Of course, if you are using the TIC-80 application on your Pi then the file will exist there when saved.//
  
 To submit this project using the **submit** tool, run the following command at your lab46 prompt: To submit this project using the **submit** tool, run the following command at your lab46 prompt:
notes/discrete/fall2021/projects/pnf3.1632357783.txt.gz · Last modified: 2021/09/23 00:43 by smalik3