Giter Club home page Giter Club logo

guess_number's Introduction

用二分查找玩猜数字游戏

介绍

用二分查找玩猜数字游戏,使用 递归 与 二分查找 两种算法

软件架构

需要python环境支撑,但无需第三方库

安装教程

直接扔到python环境里执行就完事了,关于python环境安装,请自行百度

使用说明

变量t 是用于定义每次查找的间隔时间,方便观察程序的行为 变量min1 和 变量max1 用于定义 猜数字游戏 的 目标数字范围,min1=起始值,max1=结束值,均为int类型 若出现报错,可能是递归次数过大导致的,请检查随机数范围是否过大

版权

这个项目非常小,所以我不打算做任何版权限制,你可以随意复制并学习,但如果您愿意在代码中留下本仓库的地址,我将会感激不尽,祝各位同学一路顺风!

guess_number's People

Contributors

svipwing avatar

Stargazers

Caesar avatar Zaixu Zheng avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.