我做了一个高级Python后端工程师访谈,涉及到实现一个摇滚剪刀游戏。结果不太好。他们的工程师说我在各地都有笨拙的执行。后来我做了一次升级,但仍然有一个问题让我感到困惑。我最初的实现是: """Determine the outcome of current round.ai_move : MoveChoice
AI's move for current ro
addrinfo *hints, bool socktype){
memset(&hints, 0, sizeof hints);if(socktype == true)
hints.ai_socktype = SOCK_DGRAM; // set to SOCK_DGRAM to force UDP