samp.directory
← Скрипты и библиотеки

Southclaws/samp-guess-word-game

A function request I received. Good example of sampctl.

Библиотека★ 1обновлён февр. 2018 г.Без лицензииPAWNsampctlВ архиве
Открыть на GitHub

Автор отправил этот репозиторий в архив, он больше не поддерживается.

В этом репозитории нет файла лицензии. Код открыт для чтения, но само по себе это не даёт права использовать его.

Установка через sampctl

sampctl package install Southclaws/samp-guess-word-game

Выполните в папке проекта. sampctl скачает пакет и его зависимости.

Зависит от 3 пакетов

README.md

strcmpex

strcmpex compares two strings, a 'truth' and a 'test' where the truth represents the desired match and the test is a user-entered value. The goal of this function is to facilitate a code comparison puzzle where the user enters a number and is given feedback for each character in the test sequence, such as:

  • correct value in the correct position
  • incorrect value, not in the truth string at all
  • partially incorrect value, is in the truth string but wrong pos the

inputs are character arrays (strings) and the output is an array of values from 0 to 2, where:

  • 0 represents correctness
  • 1 represents incorrectness
  • 2 represents a valid character in the wrong position

To run tests:

sampctl package run

Страница собрана из того, что GitHub публикует о репозитории. samp.directory не хранит этот код. Сообщить о проблеме с этой записью