opennars / OpenNARS-for-Applications

General reasoning component for applications based on NARS theory.
https://cis.temple.edu/~pwang/NARS-Intro.html
MIT License
91 stars 40 forks source link

[bug] In the `Alien_Test`, the defender and the alien0 is only visualized in the left half of the ASCII world #290

Open ARCJ137442 opened 1 month ago

ARCJ137442 commented 1 month ago

It can be located in here:

https://github.com/opennars/OpenNARS-for-Applications/blob/b9e41d1ebe4223b9dad9820d1ab7f40c4e7210db/src/system_tests/Alien_Test.h#L56

the width of the ASCII world is 20, while the scaler of positions is 10:

https://github.com/opennars/OpenNARS-for-Applications/blob/b9e41d1ebe4223b9dad9820d1ab7f40c4e7210db/src/system_tests/Alien_Test.h#L105-L107

May we need to shrink the visual width of the world, or double the scaler of positions?

The former just need to apply this patch:

int szX = 10;

or the latter:

//visualize:
int batX = defenderX*20;
int ballY = 5;
int ballX = alien0X*20;
patham9 commented 1 month ago

The latter sounds good! Thank you!