BotClean Partially Observable

Sort 285 Discussions, By:

Sorry, you do not have a permission to answer to this question.

  • 0pointr 9 years ago + 2 comments

    Some hint to why a bot lost a game would be very helpful. It could be a wrong move or a out of move. It's difficult to debug otherwise.

    Add Reply Preview cancel

    Sorry, you do not have a permission to answer to this question.

    • zizka 8 years ago + 0 comments

      Lost battle means you made an invalid move or printed an invalid output. Like, CLEAN on a clean cell.

      Add Reply Preview cancel

      Sorry, you do not have a permission to answer to this question.

      • johnwatson23 3 years ago + 2 comments

        I can present my code over a private message, however I'd prefer not to present the code in the conversations as I feel that'd be impolite to the test.Must Visit Wholesale pet supplies manufacturers.

        Add Reply Preview cancel

        Sorry, you do not have a permission to answer to this question.

        • pauladam896 4 months ago + 0 comments

          your websitekinemaster without watermark

          Add Reply Preview cancel

          Sorry, you do not have a permission to answer to this question.

          • tayyabtariq198 4 months ago + 0 comments

            An invisible text is nothing but a blank white space. These characters are normally used to represent blank space and to send an empty message. https://invisibletext.org/

            Add Reply Preview cancel

            Sorry, you do not have a permission to answer to this question.

        • moonpine1016 6 years ago + 0 comments

          Wtf! Saving memory of current board and reload it in next turn is allowed? I think that can be some kind of cheating...

          Add Reply Preview cancel

          Sorry, you do not have a permission to answer to this question.

          • anilmandra 8 years ago + 2 comments

            Hello Moderators, I am gettin I/O error on filesave. Is that feature disabled?

            Traceback (most recent call last):
              File "/game-player1-Eiu1FGaHXQARtVakCe3N/solution.py", line 111, in <module>
                update_board(board)
              File "/game-player1-Eiu1FGaHXQARtVakCe3N/solution.py", line 14, in update_board
                with open('boardfile.txt','w') as output:
            IOError: [Errno 13] Permission denied: 'boardfile.txt'
            

            Add Reply Preview cancel

            Sorry, you do not have a permission to answer to this question.

            • RepliCat 8 years ago + 0 comments

              I am getting the same error as well. I am fairly new to python programming so I don't know if I am doing anything wrong or are there any way to bypass this, but from what I understand we simply do not have the permission to write to any file in this enviroment, be it intentional or not.

              Add Reply Preview cancel

              Sorry, you do not have a permission to answer to this question.

              • lu_pe 8 years ago + 1 comment

                I get the same error on all problems (not only on this one). Even on problems where it is expressly stated that we should create a file to store information!

                Add Reply Preview cancel

                Sorry, you do not have a permission to answer to this question.

                • anilmandra 8 years ago + 0 comments

                  I am suspecting HR removed file access to make problems more fun. HR moderators, can you comment please?

                  Add Reply Preview cancel

                  Sorry, you do not have a permission to answer to this question.

              • BenK10 10 years ago + 2 comments

                Can we write to the grid to remember discovered cells? Suppose there are dirty cells to the bot's diagonal up right and diagonal down right. When it moves to clean one, it will lose sight of the other since it can only see its adjacent cells. So it would be good to remember the cell it lost sight of.

                Add Reply Preview cancel

                Sorry, you do not have a permission to answer to this question.

                • dheeraj Challenge Author 10 years ago + 3 comments

                  you can write to a file in your code's current directory which marks the location of dirty cells and read it in subsequent execution.

                  Add Reply Preview cancel

                  Sorry, you do not have a permission to answer to this question.

                  • samueldelesque 9 years ago + 0 comments

                    It would be great if you could at least set global variables... (or if it said in the summary you can't use them).

                    Add Reply Preview cancel

                    Sorry, you do not have a permission to answer to this question.

                    • DraigRygbi 9 years ago + 1 comment

                      Is it possible to do this in Javascript?

                      Add Reply Preview cancel

                      Sorry, you do not have a permission to answer to this question.

                      • walross 9 years ago + 0 comments

                        Have you even tried it?

                        Add Reply Preview cancel

                        Sorry, you do not have a permission to answer to this question.

                      • dima_prokopenko 8 years ago + 0 comments

                        That would be usefull if this was mentioned in problem descripion. Otherwise having static fields (in java) expect result will be persisted, - but it is not since for every execution class seems to get reloaded etc... Please mention it is possible to write to local fs to persist something. Thank you.

                        Add Reply Preview cancel

                        Sorry, you do not have a permission to answer to this question.

                      • diegoguemes 9 years ago + 1 comment

                        I thought that randomizing to prevent going to an infinite loop would be enough, but it seems you cannot get away of saving state in a file.

                        Add Reply Preview cancel

                        Sorry, you do not have a permission to answer to this question.

                        • NashBean 9 years ago + 2 comments

                          I did not save state to file, but did not get best score. I swept the room in a clock wise motion. moves are below. Am I alowed to show a link to my solution? If not will take it down. https://github.com/NashBean/GameBots/blob/master/CleaningBots/BotCleanPartiallyObservable.cpp

                          Add Reply Preview cancel

                          Sorry, you do not have a permission to answer to this question.

                          • [deleted] 9 years ago + 0 comments

                            I tried this, but it isn't the smartest way to go about it.

                            Add Reply Preview cancel

                            Sorry, you do not have a permission to answer to this question.

                            • zizka 8 years ago + 0 comments

                              Same here, got 28.8. Good enough for me ;)

                              Add Reply Preview cancel

                              Sorry, you do not have a permission to answer to this question.

                        • legallthib 6 years ago + 1 comment

                          This challenge makes me very sad, I succeccfully cleaned the 4 grids with three different algorithms with no I/O and the highest score I have (27.56) is with the dumbest algorithm. One that would not score high on a big grid or with tricky cases. It obviously means that the grids are small.

                          In addition, I read that best solutions use I/O which makes the problem so much less challenging in my opinion. This, added to some people saying that we always start at the top right corner make the challenge so much more simple.

                          I'll implement an I/O solution with regrets.

                          Add Reply Preview cancel

                          Sorry, you do not have a permission to answer to this question.

                          • gdguglie 3 years ago + 0 comments

                            I'm curious on your 3 approaches, can you at least share the 3 ideas behind them?

                            Add Reply Preview cancel

                            Sorry, you do not have a permission to answer to this question.

                          1. Challenge Walkthrough
                            Let's walk through this sample challenge and explore the features of the code editor.1 of 6
                          2. Review the problem statement
                            Each challenge has a problem statement that includes sample inputs and outputs. Some challenges include additional information to help you out.2 of 6
                          3. Choose a language
                            Select the language you wish to use to solve this challenge.3 of 6
                          4. Enter your code
                            Code your solution in our custom editor or code in your own environment and upload your solution as a file.4 of 6
                          5. Test your code
                            You can compile your code and test it for errors and accuracy before submitting.5 of 6
                          6. Submit to see results
                            When you're ready, submit your solution! Remember, you can go back and refine your code anytime.6 of 6
                          1. Check your score