Git Product home page Git Product logo

Comments (3)

brilee avatar brilee commented on July 29, 2024

Thanks for the comment. I don't work on MuGo anymore. You can see my latest work at https://github.com/tensorflow/minigo

from mugo.

fmscole avatar fmscole commented on July 29, 2024

@brilee
thanks for your reply!
I have a questi :how to deal with Residue and Double live?result is correct?

#####################################################################

def score(self):
    'Return score from B perspective. If W is winning, score is negative.'
    working_board = np.copy(self.board)
    while EMPTY in working_board:
        unassigned_spaces = np.where(working_board == EMPTY)
        c = unassigned_spaces[0][0], unassigned_spaces[1][0]
        territory, borders = find_reached(working_board, c)
        border_colors = set(working_board[b] for b in borders)
        X_border = BLACK in border_colors
        O_border = WHITE in border_colors
        if X_border and not O_border:
            territory_color = BLACK
        elif O_border and not X_border:
            territory_color = WHITE
        else:
            territory_color = UNKNOWN  # dame, or seki
        place_stones(working_board, territory_color, territory)

    return np.count_nonzero(working_board == BLACK) - np.count_nonzero(working_board == WHITE) - self.komi

#####################################################################
Looking at this code, I feel there is no distinction between Residue and Double Live, the remnants are regarded as double live, so it seems very problematic to calculate the winning or losing?

How to deal with it?

from mugo.

fmscole avatar fmscole commented on July 29, 2024

@brilee

thank you very much!
I am English very poor, I speak Chinglish ^_^
yes, I mean that "double live" is Seki .

from mugo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.