ChatDev/WareHouse/DiceRollingSimulator_THUNLP_20230825072338/meta.txt
2023-09-04 19:24:28 +08:00

30 lines
1.1 KiB
Plaintext

Task:
design a software that simulates dice rolling. the software should allow users to roll dice with varying numbers of sides and display the outcomes accurately. the program should prompt the user to input the number of sides on the dice they want to roll. after receiving the input, the software should generate a random number between 1 and the maximum number of sides specified by the user. the program should then display the outcome of the dice roll to the user. ensure that the software handles invalid inputs gracefully, displaying an error message and prompting the user to enter a valid number of sides if an invalid input is detected. the software should continue to prompt the user for dice rolls until they choose to exit the program.
Config:
ChatEnvConfig.clear_structure: True
ChatEnvConfig.brainstorming: False
Roster:
Chief Executive Officer, Counselor, Chief Human Resource Officer, Chief Product Officer, Chief Technology Officer, Programmer, Code Reviewer, Software Test Engineer, Chief Creative Officer
Modality:
application
Ideas:
Language:
Python
Code_Version:
12.0
Proposed_images:
0
Incorporated_images:
0