Skip to main content

Posts

Coding Kaprekar Constants

Here is an interesting play with numbers. Take any three-digit number, for example 276, subtract its digits i.e. 276 in descending order by the digits in ascending order, e.g., 762–267 and keep repeating this process; eventually, it will reach a constant, namely 495. Try this same method for a four-digit number and it will reach the number 6174. Try the same method for six digits, and we will arrive at two constants, i.e. 54994 and 631764, and one loop. Interestingly this phenomenon was noted by an Indian Mathematician  Dr Kaprekar  in the year 1955, and these constants are called as  Kaprekar constants . To know more about Kaprekar Constant you can watch this video I challenged myself to code Kaprekar constant for all digits. I have made a code in python which finds all the 3,4, and 6 digit numbers that don’t follow the Kaprekar constant. Run the Code in Replit: https://replit.com/@Saipranavsg/Kaprekar-Numbers?v=1#main.py Link to Medium Article https://medium.com/@saipranavsg/kaprekar

QUA-RETRO

I have built this cool retro-styled Game “Qua-Retro.” The concept behind the game is that I wanted to build a game that one can play on Quarky-like robots. I would like to make a Nintendo switch like console using Quarky. Qua-Retro is a stepping stone towards that goal.  I built this game so that it can be played on multiple devices i.e. computer, mobile and Quarky. Video Description of the Qua-Retro Game While working on this project I realized that each device comes with its own merits, and demerits. I had to handle the following limitations to make the game suitable for Quarky. Quarky has only left and right buttons, no up and down buttons. The display is small and measures only 7×5 LEDs. It has limited coding blocks for the display control. To overcome these problems I used the IR sensors to change sideways buttons to up and down buttons. I designed games suitable for a small screen. I made complex code with the limited blocks available. To make the game playable on the mobile, I a

Bebras India Computational Thinking Challenge 2021

Bebras (​ www.bebras.org ​) is an international student Computational Thinking Challenge organised in over 60 countries and designed to get students all over the world excited about computing. The challenge is a great way to learn about computational thinking and problem solving skills. The Bebras challenges are made of a set of short problems called Bebras tasks. The tasks are fun, engaging and based on problems that Computer Scientists enjoy solving. The tasks require logical thinking and can be solved without prior knowledge of computational thinking. ​The aim is to solve as many as you can in the allotted time. it was organised from 15th November-7th December, 2021. As part of this challenge my team ‘Legogoa’ coached few friends and interested ones to participate in the challenge by conducting online sessions and creating tutorial videos Bebras Explainer video Four team members from my team Legogoa secured top 100 ranks and I managed to secured 7th Rank

Ninja Fight game built for codetolearn.withgoogle.com competition

Ninja Fight game is a scrolling platform game that challenges one player to overcome obstacles and destroy the Enemy boss. The unique idea of this Game project is that the playing difficulty can be changed. There is a feature to select levels to 1-10. Additionally with the AI feature the game automatically recommends the difficulty based on how well the player did in the previous round. The recommendation can still be changed using the slider and the player can change the difficulty to whatever he/she wants. The following are the major features of the game which indicates the level of complexity in the code used to design the game. Play video of the game narrated by Sai Pranav Try playing this simple game View it at scratch.mit.edu The main features of this games are listed below Artificial Intelligence: The AI calculates the recommended value when the player wins by,  Prediction = Round((Difficulty – (Minutes taken * 0.8)) + (Hearts / 3)). It also calculates the value, Predic

SMILES mobile app

This is an app that I have developed, as part of the FOM (Fear/ fun of Maths) series wherein I try to simplify concepts of maths. This app solves simultaneous linear equations The app was built using MIT app Inventor platform

Project Farm3r

FARM3R PROJECT AIMS TO DEVELOP AUTOMATION IN AGRICULTURE WITH THE HELP OF ROBOTICS. Team Members: Venkatesh Dempo, Darsh, Sai Pranav Gandhi, Taksh Parekh The project was submitted to Techfest, IIT Bombay organised by IIT Bombay and WitBlox as part of ‘Young Inventor 2020’ under theme Innovation in FarmingTeam Legogoa has developed automation models with the help of Lego robotics kit for various farming operations. The automation bots are modular in nature and can be easily switched to carry out multiple farm operationsThe most important part of the project is that the entire model is based on Farm Automation as a Service model and not as Buy model. The farmer will be able to hire the robots on hourly basis just like tractor to carry out the farm operations in a easy and efficient manner.For more details on the project check out website www.legogoa.in https://fb.watch/86AqMTxqOB/

VOX Mobile App

App Title:  VOX Theme:  Community Computational Action Team Members: App is built by three young kids of Team Legogoa- Sai Pranav, Vedant and Viraj Achievement: The app won the third place in youth category for Popular Choice award at the MIT Appathon 2021 App Description: VOX – Voice to All VOX (‘voice’ in Latin) is a hyperlocal app that provides a platform for citizens to voice their opinions and suggestions or their concerns about proposed projects in their community, so that the really people-friendly and transformative ideas get translated into reality and others get discarded. It is also a medium for citizens to participate in the development process by expressing their felt needs and new ideas. VOX mobile app Problem  NIMBY (Not In My Back Yard), is used to characterise the opposition of residents to a proposed development plan in their area, due to which many projects do not take off. This happens because: Opinions of citizens that are supporting the project are not heard. Opp