03ea8f393c39169ad368a8fed61e1daf0037b333,doudizhu/apps/game/player.py,Player,handle_call_score,#Player#Any#,133

Before Change


            self.rob = packet[1]

            call_end = self.room.is_rob_end()
            response = [Pt.RSP_CALL_SCORE, self.uid, self.rob, call_end]
            for p in self.room.players:
                p.write_message(response)

            if call_end:
                self.change_state(State.PLAYING)
                self.room.sync_rob_end()

After Change


                "uid": self.uid,
                "rob": self.rob,
                "landlord": self.room.landlord.uid if is_end else -1,
                "pokers": self.room.pokers if is_end else [],
            }]
            self.room.broadcast(response)
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: mailgyc/doudizhu
Commit Name: 03ea8f393c39169ad368a8fed61e1daf0037b333
Time: 2020-02-19
Author: 4143964+mailgyc@users.noreply.github.com
File Name: doudizhu/apps/game/player.py
Class Name: Player
Method Name: handle_call_score


Project Name: mailgyc/doudizhu
Commit Name: 03ea8f393c39169ad368a8fed61e1daf0037b333
Time: 2020-02-19
Author: 4143964+mailgyc@users.noreply.github.com
File Name: doudizhu/apps/game/player.py
Class Name: Player
Method Name: handle_waiting


Project Name: mailgyc/doudizhu
Commit Name: a8ef8488c4df8fb0ded4c7d6cf19ace5656a0d5f
Time: 2015-08-03
Author: mailgyc@gmail.com
File Name: app.py
Class Name: SocketHandler
Method Name: on_message