(player_data)
| 319 | |
| 320 | |
| 321 | def chat_player(player_data): |
| 322 | temp_data = copy.deepcopy(player_data) |
| 323 | |
| 324 | #if it is the first talk, then generate reply without planning |
| 325 | if temp_data['history']!=[]: |
| 326 | temp_data,planning = planning_reply(temp_data) |
| 327 | else: |
| 328 | planning = {} |
| 329 | |
| 330 | temp_data = player_reply(temp_data,planning) |
| 331 | |
| 332 | return temp_data |
| 333 |
no test coverage detected