Merge branch 'master' of ssh://gitea.calebfontenot.com:25566/CCF_100/NoMoreAcronyms

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2023-04-08 19:00:32 -05:00
commit a88a4a94f2

View File

@ -168,14 +168,14 @@ function design4(input) {
space += " ";
}
// for horizontal movement
for (let i = 0; i <= 1.5 * radius; i++) {
for (let i = 0; i <= 2 * radius; i++) {
if (i != mid) {
// for vertical movement
for (let j = 0; j <= 2 * radius; j++) {
dist = Math.sqrt(
(i - radius) * (i - radius) +
(j - radius) * (j - radius)
(j - radius / 2) * (j - radius / 2)
);
// dist should be in the range (radius - 0.5)