Posts

Post not yet marked as solved
2 Replies
4.9k Views
hello all,I am at the beginning of learning swift with the ipad playgrounds.in the chapter, where you have to go through a labyrinth till you collected 3 gems and toggled 4 switches, I have the following problem.ar numberGem = 0 var numberSwitch = 0 } func direction() { if isBlocked && isBlockedLeft { turnRight() } else if isBlocked && isBlockedRight { turnLeft() } } func gemSwitchVar() { if isOnGem { collectGem() numberGem += 1 } else if isOnClosedSwitch { toggleSwitch() numberSwitch += 1 } } while numberGem < 4 && numberSwitch < 5 { gemSwitchVar() direction() moveForward() }the while loop always stops after the figure collected 3 gems. It does not continue till it also toggled 4 switches. I always thought that with AND both conditions had to be fullfilled. And the OR operator would display the behaviour it does now.I had the same problem with a while loop in an earlier chapter where I tried a while loop likewhile !isBlocked && !isBlockLeft && !isBlockedRightto make my figure walk till the end of the course, which was blocked in the upper way.Where is my thought error.
Posted Last updated
.
Post not yet marked as solved
1 Replies
636 Views
10.15.3 BetaMacBook Pro Retina 15" Mid 2014Apple Wireless Keyboard A1314Hello, it seems there is a bug which prevents me from changing the name of my keyboard. I tried to change the name in bluetooth system preferences, right-click change name. the new name will be displayed in the preferences window. but in the bluetooth menu at the top of the screen there is still the old name displayed. when I close and reopen the bluetooth system preferences the old name is displayed again.I already tried the option/shift -> bluetooth menu -> reset connected devices, reset bluetooth module options with no success.Thank you very much
Posted Last updated
.
Post not yet marked as solved
0 Replies
654 Views
Hello,recently I tried to install FreePascal on MacOS Catalina. The installation failed possibly because of the new read only system partition etc. The installer for instance tries to install some documentation under /Developer.Is there any information about firmlinks and what parts of the hierarchy are writable and what not? Some of the FreePascal developers seem to be wondering and I would like to provide them this information.
Posted Last updated
.