« first day (1631 days earlier)      last day (1945 days later) » 

12:00 AM
RELOAD!
[rubberduck-vba/Rubberduck] 2 opened issues. 10 issue comments.
 
 
2 hours later…
2:25 AM
Making some progress on the hide & seek, got my new classes pretty much done, hopefully the logic works
    class Opponent
    {
        public Opponent(Location startingLocation)
        {
            hidingLocation = startingLocation;
            random = new Random();
        }

        private Location hidingLocation;
        private Random random;

        public bool Check(Location location) => location == hidingLocation;

        private bool DoIGoThroughDoor() => random.Next(2) == 1;

        public void Move()
        {
            if (hidingLocation is IHasExteriorDoor)
            {
                if (DoIGoThroughDoor())
The idea is that if the Opponent is in a location with an exterior door, he flips a coin to decide whether to go through. and if he doesn't then he picks a connected location at random
 
Nice
Does it need to move? or can you just pick a spot and be done?
 
I think the idea is that he only moves (10 times) at the start of the game, and moves again when he's found
 
Then does he need to traverse the house the way the user does? can't he just have his location chosen at random excluding the room the user is in?
 
He does have to travel like the user does
 
ohh okay
 
2:35 AM
Actually, it's simpler than that. Basically he finds the hiding place when the game starts, presumably before you arrive at the house. When you find him, the game starts again.
 
Yes. So why does he have to look around? Im just not certain why he isn't just placed in his hiding spot.
unless part of the exercise is to mimick looking for a spot
 
I think that^
 
yup. I added that last line as it dawned on me
that was literally the light-bulb
 
And I'm glad you did, because I forgot one part of the logic
Not all rooms have hiding places, so I need to check that before setting the location, and make him move again if it doesn't have one
 
glad to be of help
Are you going to get hit by this winter storm?
I bet you will @Marc-Andre
 
2:46 AM
Doubtful
        public void Move()
        {
            if (hidingLocation is IHasExteriorDoor)
            {
                Location newLocation = null;

                if (DoIGoThroughDoor())
                {
                    IHasExteriorDoor locationWithExteriorDoor = hidingLocation as IHasExteriorDoor;
                    if (locationWithExteriorDoor.DoorLocation is IHidingPlace)
                    {
                        newLocation = locationWithExteriorDoor.DoorLocation;
                    }
There we go
 
 
10 hours later…
12:50 PM
hey
 
1:01 PM
Moonring
 
 
1 hour later…
noo
 
3:23 PM
@SimonForsberg Did you share with mug at the pond?
 
@IvenBach 1. huh? 2. probably not
 
 
2 hours later…
5:16 PM
@SimonForsberg oh my.
 
5:41 PM
> Hosch AI Solutions, LLC. Turning equipment against its owner without provocation since 2019. :P
2
 
 
1 hour later…
6:52 PM
Still experimenting with Blender..
 
 
2 hours later…
8:44 PM
Okay, how about we put @skiwi in charge for the graphics next time we work on Cardshifter?
 
9:15 PM
@SimonForsberg Hmmm
@SimonForsberg Am I suddenly the graphics guru now?
I must say I'm quite impressed by how quickly I've been able to do stuff
Though I can totally imagine myself being a 3D artist in a different life of mine
2
 
10:23 PM
Monking!
 
Monking @Phrancis
 
How's it going?
 
Monking
 
Almost end of the day :P
 
11:05 PM
@Phrancis I thought I had some motivation for coding, but I realized I was wrong.
On the positive side, board games last night was fun, but I sure had to pay for it this morning... headache...
I'm thinking of learning some TypeScript, or Golang, or continue Advent of Code in Python, or implementing some session cookie for Server2, or start work on a Minesweeper Flags client in Vue.
... but then I realize that all that code doesn't really matter much, but for some reason the code I'm sitting with at work which is totally abusing Java's equals method - that is what matters.
 
11:45 PM
Mathieu Guindon vs. Simon Forsberg: 12056 diff. Year: +46. Quarter: +46. Month: +46. Week: +46. Day: 0.
 

« first day (1631 days earlier)      last day (1945 days later) »