Skip to main content

rsp

파이썬 가위바위보 라이브러리

가위바위보 기능을 파이썬에서 라이브러리로 이용할 수 있도록 개발되었습니다.

기능

상수

Hand

가위바위보 수 타입

  • ROCK 가위바위보 중 '바위' 수를 의미한다
  • SCISSORS 가위바위보 중 '가위' 수를 의미한다
  • PAPER 가위바위보 중 '보' 수를 의미한다

Language

변환 가능한 언어

  • KOREAN 한국어 (기본값)
  • MGB 한국어 (묵찌빠)
  • ENGLISH 영어
  • JAPANESE 일본어
  • CHINESE 중국어

함수

is_a_winning_b(a: Hand, b: Hand) -> bool

a가 b를 이기는 수인지 확인하는 함수

is_a_losing_b(a: Hand, b: Hand) -> bool

a가 b를 지는 수인지 확인하는 함수

is_a_equal_b(a: Hand, b: Hand) -> bool

a와 b가 비겼는지 확인하는 함수

stringify(hand: Hand, language: Language) -> str

hand를 language 언어로 변환하여 출력해주는 함수

hand_convert(string: str) -> Hand

사용자 입력을 Hand 타입으로 바꿔주는 함수

random_choice() -> Hand

ROCK, SCISSORS, PAPER중 하나를 랜덤으로 골라서 출력하는 함수

probability(pro: float)

random_choice_probability 함수의 확률을 결정하는 함수

random_choice_probability(a: Hand) -> Hand

a의 확률에 가중치를 부여하여 랜덤으로 골라 출력하는 함수

Metadata

Release files for sch-ossc-rsp 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sch-ossc-rsp 1.1.0
File Size Uploaded
sch_ossc_rsp-1.1.0.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sch-ossc-rsp 1.1.0
File Interpreter ABI Platform
sch_ossc_rsp-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 kB

Release files / sch_ossc_rsp-1.1.0.tar.gz

Download URL sch_ossc_rsp-1.1.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ab1ce27cb0cca1b0e29203d9a79caab47da058e4f3fa59482caea9cd4e6e0053
BLAKE2b-256 checksum
How to use checksums
4e15fbc61fb55e91ccb0d0c7d55a4cfb548585803c78fff2a346d8e5882a410b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / sch_ossc_rsp-1.1.0-py3-none-any.whl

Download URL sch_ossc_rsp-1.1.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ed5c552009941fd93fdc73814c0da07b0f411a1dfabd79b3e89f2080295d0e7
BLAKE2b-256 checksum
How to use checksums
0262be1ec9343cfb79106330e12b8f50a148b0df6c72c67d0e0d1890668f6dc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page