samp.directory
← Scripts y librerías

Southclaws/samp-guess-word-game

A function request I received. Good example of sampctl.

Librería★ 1actualizado feb 2018Sin licenciaPAWNsampctlArchivado
Abrir en GitHub

El autor archivó este repositorio, así que ya no se mantiene.

Este repositorio no tiene archivo de licencia. Se puede leer, pero eso por sí solo no da permiso para reutilizarlo.

Instalar con sampctl

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

Ejecútalo en la carpeta de tu proyecto. sampctl descarga el paquete y sus dependencias.

Depende de 3 paquetes

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

Esta página se genera con lo que GitHub publica sobre el repositorio. samp.directory no aloja el código. Informar de un problema con esta ficha