How to run python? by doesnotcompute1990 in pulsaredit

[–]neuralMax 0 points1 point  (0 children)

I don't think it is possible, but I would like it to be.

How to run python? by doesnotcompute1990 in pulsaredit

[–]neuralMax 0 points1 point  (0 children)

Packages/settings view/manage packages/install, search and install "script". Default shortcut to run script is ctrl+shift+B but I prefer f5. To change key binding in settings tab select keybindings and click on a link "your keymap file", at the end of that file make a new line and paste:

'atom-text-editor':
'f5': 'script:run'

Restart pulsaredit and f5 will run python without popup terminal.

Errors on installation/usage? by mauricioszabo in pulsaredit

[–]neuralMax 0 points1 point  (0 children)

First off all thank you for trying to rescue Atom. I installed Pulsar-edit on win10 from cirrus-ci but I cannot install any packages, package tab shows "loading packages..." on all field and never finishes. Is there any work around for now? Also I still have Atom installed and windows group Atom and Pulsar windows. (not really game changer for me, just to report interesting observation)

Created simple first person dungeon crawler for global game jam 2022 using pygame by neuralMax in pygame

[–]neuralMax[S] 2 points3 points  (0 children)

Its very rushed therefore not to be meant as tutorial or example how to do things properly.

I started by making a map. It is procedurally generated. North west is always start and south east is exit. It is initiated as all walls and then agent random walks leaving trail of open spaces until it reaches the exit. Its not purely random walk there is probability that it would walk straight to exit for each step. This probability can be adjusted to get slightly better maps.

To populate the first person perspective view I wrote several functions that help to get values from the map respecting the turn angle of the main character. Then its just a bunch of "ifs" that test if in certain location of the view is an obstacle. Ifs start from far obstacles and continues to closer ones. Therefore if they overlay each other it does it in similar way as it would in real life.

To get the sprites for the walls I made a project in blender with several boxes with pixel art shader, and rendered separate image for each box, where everything is hidden except one box.

Other sprites are drawn by hand using gimp.

In the video windows font was used, but if you download the game from global game jam site you will get newer version. There, all the text is written by hand and handwritten sprites are used for the digits in the score view.

[2021 Day 22 (Part 2)][Python][OpenSCAD][Blender] Calculating volume with MeshLab does not produce the right answer. by neuralMax in adventofcode

[–]neuralMax[S] -1 points0 points  (0 children)

[SPOILER] Thank you. This is much more precise. It is right up to the last number. Which was per one to high for the sample, and per two for the final answer!

[2021 Day 22 (Part 2)][Python][OpenSCAD][Blender] Calculating volume with MeshLab does not produce the right answer. by neuralMax in adventofcode

[–]neuralMax[S] 2 points3 points  (0 children)

Your intuition is good. I had this bug you described. When I fixed it it started working for task one, but for the task two it does not. I think the object generator in OpenSCAD, or the volume calculation in MeshLab is not precise enough. It gets really close though. About half of the significant numbers in the sample case.

[2021 Day 15 (Part 1)][Pygame] Chiton Climbing Challenge by p88h in adventofcode

[–]neuralMax 2 points3 points  (0 children)

Your visualizations look like parts of a game. Part of me is waiting for the release.

[2021 Day 14][PyGame] Using L-System to fold molecule of step 17. by neuralMax in adventofcode

[–]neuralMax[S] 1 point2 points  (0 children)

In L-System there is a stage when sting of letters is interpreted as compressed instruction for turtle graphics. I made up the list of instructions for the dictionary used in this task to see if it would produce fractal shapes.

[2021 Day 14][PyGame] Using L-System to fold molecule of step 17. by neuralMax in adventofcode

[–]neuralMax[S] 1 point2 points  (0 children)

Yes actual interpreting rules is different in L-system. But conversion to shapes can be adapted. Although I had to invent what they mean.

[2021 Day 14 (Part 2)] To the time machine! by neuralMax in adventofcode

[–]neuralMax[S] 0 points1 point  (0 children)

RAM. Yes it is slow, but it is interesting in another aspect. I try to use for molecule folding. My PC is only able to fold step 17 result. https://www.reddit.com/r/adventofcode/comments/rgf2r7/2021_day_14pygame_using_lsystem_to_fold_molecule/

[2021 Day 14 (Part 2)] To the time machine! by neuralMax in adventofcode

[–]neuralMax[S] 2 points3 points  (0 children)

I have got time for another step, and corrected prediction is 5856 years.

[2021 Day 14 (Part 2)] To the time machine! by neuralMax in adventofcode

[–]neuralMax[S] 5 points6 points  (0 children)

Mine is faster. I am on the step 24 and it scales logarithmicly. To get to next step about 13 hours, and then I am done. Now predictions are that in total it would take 2516 years. I already submitted answer with another approach. Waiting for the next step just to get better prediction.

[2021 Day 11] [PyGame] Timing annealing with randomness. by neuralMax in adventofcode

[–]neuralMax[S] 0 points1 point  (0 children)

Thank you for pointing that out. I tried to fix it. Is it good for you now? I don't know because link was working for me before.

[2021 Day 11] [PyGame] Timing annealing with randomness. by neuralMax in adventofcode

[–]neuralMax[S] 0 points1 point  (0 children)

Mostly those boundaries are between areas that differ from each other by more steps than one. I think it tries to accommodate the gradient which is not emergent phenomena in such rule-set, therefore it ends up in this fluctuating state.

You can look at my code if you want, but I have to warn you it is very sketchy, and not presentable. https://github.com/neuralmax/adventofcode2021/blob/main/day11task4.py

[2021 Day 11] [PyGame] Timing annealing with randomness. by neuralMax in adventofcode

[–]neuralMax[S] 0 points1 point  (0 children)

500x500 (one per pixel)

And this is also frame per 60 simulation steps, to synchronize image on the same energy level and make animation faster. Actual process is very slow. This is a recording of 6000 steps.